# CVE-2024-21627: Some attribute not escaped in Validate::isCleanHTML method

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-01-02T21:03:17.816Z
- Modified: 2026-09-10T03:50:05.157Z
- Also known as: GHSA-xgpm-q3mq-46rq
- Weaknesses: CWE-20, CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

- PrestaShop PrestaShop: >= 8.0.0, < 8.1.3; < 1.7.8.11; before 1.7.8.11; from 8.0.0 before 8.1.3
- prestashop/prestashop (Packagist): from 8.0.0-beta.1 before 8.1.3; before 1.7.8.11

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-xgpm-q3mq-46rq> (vendor-advisory, web)
- <https://github.com/PrestaShop/PrestaShop/commit/73cfb44666818eefd501b526a894fe884dd12129> (patch, web)
- <https://github.com/PrestaShop/PrestaShop/commit/ba06d18466df5b92cb841d504cc7210121104883> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21627> (advisory)
- <https://github.com/PrestaShop/PrestaShop/commit/0ed1af8de500538490f88e9e794e2e8113fb8df7> (web)
- <https://github.com/PrestaShop/PrestaShop/commit/f799dcff564cd1b7ead932ffc3343b675107dbce> (web)
- <https://github.com/PrestaShop/PrestaShop> (package)

## Sources

- CVE List: [CVE-2024-21627](https://www.cve.org/CVERecord?id=CVE-2024-21627), CVE Terms of Use, modified 2025-06-03
- GitHub Advisory Database: [GHSA-xgpm-q3mq-46rq](https://github.com/advisories/GHSA-xgpm-q3mq-46rq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-21627](https://nvd.nist.gov/vuln/detail/CVE-2024-21627), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21627 · Whole record: https://cve.day/CVE-2024-21627.json · Rebuilt by cve.day 2026-11-25T22:58:35.902Z
