{"id":"CVE-2023-30838","aliases":["CVE-2023-30838","GHSA-fh7r-996q-gvcp"],"related":[],"kind":"vulnerability","state":"published","title":"PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nValidateCore::isCleanHTML() method of Prestashop misses hijickable events which can lead to XSS injection, allowed by the presence of pre-setup @keyframes methods.\n\nThis XSS which hijacks HTML attributes will be triggered without any interaction of the visitor/administrator which makes it as dangerous as a trivial XSS.\n\nContrary to most XSS which target HTML attributes and which 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.\n\n### Patches\nThe patch will be on PS 8.0.4 and PS 1.7.8.9\n\n### References","format":"markdown","source":"ghsa"}],"published":"2023-04-25T18:22:54.521Z","modified":"2026-07-16T09:11:44.321Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 8.0.0, < 8.0.4","status":"affected"},{"version":"< 1.7.8.9","status":"affected"}],"vendor":"PrestaShop","product":"PrestaShop","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.0.4"}],"ecosystem":"Packagist","package":"prestashop/prestashop","purl":"pkg:composer/prestashop/prestashop","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.8.9"}],"ecosystem":"Packagist","package":"prestashop/prestashop","purl":"pkg:composer/prestashop/prestashop","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.7.8.9"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.4"}],"vendor":"prestashop","product":"prestashop","cpe":"cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-fh7r-996q-gvcp","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30838","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/8.0.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-03T19:34:44.162Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-30838","url":"https://www.cve.org/CVERecord?id=CVE-2023-30838","licence":"CVE Terms of Use","modified":"2025-02-03T19:34:54.511Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fh7r-996q-gvcp","url":"https://github.com/advisories/GHSA-fh7r-996q-gvcp","licence":"CC-BY-4.0","modified":"2026-07-16T09:11:44.321Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-30838","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30838","licence":"Public domain","modified":"2026-06-17T05:55:44.593Z"}],"updatedAt":"2026-11-25T22:58:23.747Z","epss":{"score":0.01045,"percentile":0.65091,"date":"2026-12-01T12:00:22.000Z"}}