{"id":"CVE-2023-30838","aliases":["EUVD-2023-1290","GHSA-fh7r-996q-gvcp"],"status":"published","title":"PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method","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.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01045,"percentile":0.64445,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2023-04-25T18:22:54Z","modified":"2026-10-28T02:31:05Z","fixes":[{"ecosystem":"Packagist","package":"prestashop/prestashop","fixed_in":["8.0.4","1.7.8.9"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.0.4"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.8.9"}]}]},{"source":"osv","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.0.4"}]}],"versions":["8.0.0","8.0.1","8.0.2","8.0.3"]},{"source":"osv","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.8.9"}]}],"versions":["1.7.0.0","1.7.0.0-beta.1.0","1.7.0.0-beta.2.0","1.7.0.0-beta.3.0","1.7.0.0-beta.4.0","1.7.0.0-rc.0.0","1.7.0.0-rc.1.0","1.7.0.0-rc.2.0","1.7.0.1","1.7.0.2","1.7.0.3","1.7.0.4","1.7.0.5","1.7.0.6","1.7.1.0","1.7.1.1","1.7.1.2","1.7.2.0","1.7.2.0-rc.1.0","1.7.2.1","1.7.2.2","1.7.2.3","1.7.2.4","1.7.2.5","1.7.3.0","1.7.3.1","1.7.3.2","1.7.3.3","1.7.3.4","1.7.4.0","1.7.4.0-beta.1","1.7.4.1","1.7.4.2","1.7.4.3","1.7.4.4","1.7.5.0","1.7.5.0-beta.1","1.7.5.0-rc.1","1.7.5.1","1.7.5.2","1.7.6.0","1.7.6.0-beta.1","1.7.6.0-rc.1","1.7.6.0-rc.2","1.7.6.1","1.7.6.2","1.7.6.3","1.7.6.4","1.7.6.5","1.7.6.6","1.7.6.7","1.7.6.8","1.7.6.9","1.7.7.0","1.7.7.0-beta.1","1.7.7.0-beta.2","1.7.7.0-rc.1","1.7.7.1","1.7.7.2","1.7.7.3","1.7.7.4","1.7.7.5","1.7.7.6","1.7.7.7","1.7.7.8","1.7.8.0","1.7.8.0-beta.1","1.7.8.0-rc.1","1.7.8.1","1.7.8.2","1.7.8.3","1.7.8.4","1.7.8.5","1.7.8.6","1.7.8.7","1.7.8.8"]}],"products":[{"vendor":"prestashop","product":"prestashop"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-fh7r-996q-gvcp","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.9","tags":["web"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/8.0.4","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30838","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fh7r-996q-gvcp"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30838.json","tags":["advisory"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-30838","title":"PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method","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.","status":"published","published":"2023-04-25T18:22:54.521Z","modified":"2025-02-03T19:34:54.511Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:35:22.309324Z"}],"euvd":[{"id":"EUVD-2023-1290","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.","status":"published","published":"2023-04-25T18:22:54Z","modified":"2025-02-03T19:34:54Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:04:06.761301Z"}],"ghsa":[{"id":"GHSA-fh7r-996q-gvcp","title":"Possible XSS injection through Validate::isCleanHTML method","description":"### 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\n","status":"published","published":"2023-04-25T19:47:05Z","modified":"2023-11-10T05:02:03Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:18.40412Z"}],"nvd":[{"id":"CVE-2023-30838","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.","status":"published","published":"2023-04-25T19:15:11.16Z","modified":"2026-06-17T05:55:44.593Z","cvss":[{"version":"3.1","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:59.151142Z"}],"osv":[{"id":"CVE-2023-30838","title":"PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method","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.","status":"published","published":"2023-04-25T18:22:54.521Z","modified":"2026-10-28T02:31:05.933702837Z","cvss":[{"version":"3.1","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:31.790231Z"},{"id":"GHSA-fh7r-996q-gvcp","title":"Possible XSS injection through Validate::isCleanHTML method","description":"### 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\n","status":"published","published":"2023-04-25T19:47:05Z","modified":"2026-07-16T09:11:44.321748629Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:46.39441Z"}]}}
