{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-30838","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,","descriptionLong":"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.","published":"2023-04-25T18:22:54.521Z","updated":"2026-10-28T02:31:05.933702837Z","reserved":"2023-04-18T16:13:15.879Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"high","source":"GitHub_M"},"metrics":[{"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","rating":"high","source":"GitHub_M"},{"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","rating":"high","source":"github.com"},{"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","rating":"critical","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["PrestaShop"],"affectedProducts":[{"vendor":"PrestaShop","product":"PrestaShop","defaultStatus":null,"versions":[{"version":">= 8.0.0, < 8.0.4","status":"affected"},{"version":"< 1.7.8.9","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"prestashop/prestashop","purl":"pkg:composer/prestashop/prestashop","ranges":[">=8.0.0 <8.0.4","<1.7.8.9"],"fixed":["8.0.4","1.7.8.9"],"advisory":"GHSA-fh7r-996q-gvcp"}],"cwes":["CWE-79"],"aliases":["GHSA-fh7r-996q-gvcp"],"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/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30838.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30838","tags":["advisory"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["package"]},{"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"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01045,"epssPercentile":0.64855,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-30838","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30838","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-30838","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fh7r-996q-gvcp","ok":true,"note":"GHSA-fh7r-996q-gvcp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-30838","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}