CVE-2024-21627Prestashop
Medium 6.1 No auth needed
Follow: this CVE · Prestashop · Prestashop We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 48
- Auth required
- No
- Published
- Jan 2, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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`.
What to do
- Apply the vendor's security update for Prestashop.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | prestashop/prestashop |
≥ 8.0.0-beta.1 < 8.1.3 |
8.1.3 |
composer require "prestashop/prestashop:^8.1.3" |
| Packagist | prestashop/prestashop |
< 1.7.8.11 |
1.7.8.11 |
composer require "prestashop/prestashop:^1.7.8.11" |
Per OSV / GitHub Advisories (GHSA-xgpm-q3mq-46rq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prestashop | prestashop | < 1.7.8.11 |
| prestashop | prestashop | ≥ 8.0.0 < 8.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Vendor Advisory