XSS in Prestashop
CVE-2024-21627
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 class: Drupalgeddon 2 (CVE-2018-7600)
EPSS: 0.005 (41.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N.
Affected products
- Prestashop — versions >= 8.0.0, < 8.1.3, < 1.7.8.11
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (Patch, x_refsource_MISC)
Frequently asked questions
- What is CVE-2024-21627?
- CVE-2024-21627 is a high-severity vulnerability in Prestashop, classified under Improper Input Validation. CVSS score: 8.1/10. Published 2024-01-02.
- How severe is CVE-2024-21627?
- High severity. CVSS v3 base score is 8.1 out of 10.
- Is CVE-2024-21627 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.