{"id":"CVE-2023-30838","published":"2023-04-25T18:22:54Z","modified":"2025-02-03T19:34:54Z","title":"PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method","vendor":"PrestaShop","product":"PrestaShop","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01045,"percentile":0.64964,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-fh7r-996q-gvcp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693","tags":["x_refsource_MISC"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":12.99},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"prestashop","affectedVersions":[{"vendor":"PrestaShop","product":"PrestaShop","versions":[">= 8.0.0, < 8.0.4","< 1.7.8.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-03T19:34:44.162026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":[">=8.0.0, <8.0.4","<1.7.8.9"],"patched":["8.0.4","1.7.8.9"],"from":["GHSA-fh7r-996q-gvcp"],"provenance":"source"}],"summary":{"text":"The flaw is in the ValidateCore::isCleanHTML() method of PrestaShop, the open-source e-commerce web application, where it fails to block hijackable event attributes and so allows cross-site scripting (XSS) injection. An attacker can abuse pre-setup @keyframes methods to hijack HTML attributes on any element, and this can be triggered without visitor or administrator interaction, though it requires network access, low privileges, and a high-complexity attack condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:14Z"},"euvd":{"id":"EUVD-2023-1290","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-prestashop-cve-2023-30838","children":[{"from":"CVE-2023-30838","to":"CVE-2023-39527","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["classes/Validate.php"],"commits":["https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c","https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693","https://github.com/PrestaShop/PrestaShop/commit/afc14f8eaa058b3e6a20ac43e033ee2656fb88b4"],"basis":"shared function","functions":["isCleanHtml"]}]}],"packageHistory":[{"cve":"CVE-2022-46158","published":"2022-12-08","fixed":"1.7.8.8","kev":false,"link":{"from":"CVE-2022-46158","to":"CVE-2023-30838","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.8","toFixed":"1.7.8.9","daysApart":138}]}},{"cve":"CVE-2023-25170","published":"2023-03-13","fixed":"8.0.1","kev":false,"link":{"from":"CVE-2023-25170","to":"CVE-2023-30838","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"8.0.1","toFixed":"8.0.4","daysApart":43}]}},{"cve":"CVE-2023-30545","published":"2023-04-25","fixed":"8.0.4","kev":false},{"cve":"CVE-2023-30838","published":"2023-04-25","fixed":"8.0.4","kev":false},{"cve":"CVE-2023-30839","published":"2023-04-25","fixed":"8.0.4","kev":false},{"cve":"CVE-2023-39524","published":"2023-08-07","fixed":"8.1.1","kev":false},{"cve":"CVE-2023-39525","published":"2023-08-07","fixed":"8.1.1","kev":false}],"package":"Packagist:prestashop/prestashop"}}