CVE-2024-21627
PHP vulnerability analysis and mitigation

Overview

PrestaShop, an open-source e-commerce platform, disclosed a vulnerability (CVE-2024-21627) affecting versions prior to 8.1.3 and 1.7.8.11. The vulnerability stems from the isCleanHTML method failing to detect certain event attributes, which could potentially lead to cross-site scripting attacks (Vendor Advisory).

Technical details

The vulnerability exists in the input validation mechanism where some event attributes are not properly detected by the isCleanHTML method. The issue received a CVSS v3.1 base score of 8.1 (HIGH) with a vector string of CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N, indicating a network-accessible vulnerability requiring high privileges and user interaction (NVD).

Impact

The vulnerability could allow attackers to execute cross-site scripting (XSS) attacks through modules that utilize the isCleanHTML method. This could potentially lead to unauthorized access to sensitive data and compromise of web application integrity (Vendor Advisory).

Mitigation and workarounds

The vulnerability has been patched in PrestaShop versions 8.1.3 and 1.7.8.11. As a workaround, users are advised to utilize the HTMLPurifier library for sanitizing HTML input from users, which is already included as a dependency in the PrestaShop project. However, users should note that in legacy object models, fields of HTML type will still call isCleanHTML (Vendor Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management