PrestaShop XSS via isCleanHTML before 8.1.3/1.7.8.11
CVE-2024-21627 Published on January 2, 2024
Some attribute not escaped in Validate::isCleanHTML method
PrestaShop is an open-source e-commerce platform. Prior to versions 8.1.3 and 1.7.8.11, some event attributes are not detected by the `isCleanHTML` method. Some modules using the `isCleanHTML` method could be vulnerable to cross-site scripting. Versions 8.1.3 and 1.7.8.11 contain a patch for this issue. The best workaround is to use the `HTMLPurifier` library to sanitize html input coming from users. The library is already available as a dependency in the PrestaShop project. Beware though that in legacy object models, fields of `HTML` type will call `isCleanHTML`.
Vulnerability Analysis
CVE-2024-21627 can be exploited with network access, requires user interaction and user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Types
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2024-21627 has been classified to as a XSS vulnerability or weakness.
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Products Associated with CVE-2024-21627
Want to know whenever a new CVE is published for PrestaShop? stack.watch will email you.
Affected Versions
PrestaShop:- Version >= 8.0.0, < 8.1.3 is affected.
- Version < 1.7.8.11 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2024-21627
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| composer | prestashop/prestashop | >= 8.0.0-beta.1, < 8.1.3 | 8.1.3 |
| composer | prestashop/prestashop | < 1.7.8.11 | 1.7.8.11 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.