# CVE-2023-30838: PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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): 1.04%, higher than 65% of CVEs (2026-12-01)
- Published: 2023-04-25T18:22:54.521Z
- Modified: 2026-07-16T09:11:44.321Z
- Also known as: GHSA-fh7r-996q-gvcp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

PrestaShop is an Open Source e-commerce web application. Prior to versions 8.0.4 and 1.7.8.9, the `ValidateCore::isCleanHTML()` method of Prestashop misses hijackable events which can lead to cross-site scripting (XSS) injection, allowed by the presence of pre-setup `@keyframes` methods. This XSS, which hijacks HTML attributes, can be triggered without any interaction by the visitor/administrator, which makes it as dangerous as a trivial XSS attack. Contrary to other attacks which target HTML attributes and are triggered without user interaction (such as onload / onerror which suffer from a very limited scope), this one can hijack every HTML element, which increases the danger due to a complete HTML elements scope. Versions 8.0.4 and 1.7.8.9 contain a fix for this issue.

(As written by CVE List.)

## Affected

- PrestaShop PrestaShop: >= 8.0.0, < 8.0.4; < 1.7.8.9; before 1.7.8.9; from 8.0.0 before 8.0.4
- prestashop/prestashop (Packagist): from 8.0.0 before 8.0.4; before 1.7.8.9

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-fh7r-996q-gvcp> (vendor-advisory, web)
- <https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c> (patch, web)
- <https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30838> (advisory)
- <https://github.com/PrestaShop/PrestaShop> (package)
- <https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.9> (web)
- <https://github.com/PrestaShop/PrestaShop/releases/tag/8.0.4> (web)

## Sources

- CVE List: [CVE-2023-30838](https://www.cve.org/CVERecord?id=CVE-2023-30838), CVE Terms of Use, modified 2025-02-03
- GitHub Advisory Database: [GHSA-fh7r-996q-gvcp](https://github.com/advisories/GHSA-fh7r-996q-gvcp), CC-BY-4.0, modified 2026-07-16
- NVD: [CVE-2023-30838](https://nvd.nist.gov/vuln/detail/CVE-2023-30838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30838 · Whole record: https://cve.day/CVE-2023-30838.json · Rebuilt by cve.day 2026-11-25T22:58:23.747Z
