{"id":"CVE-2024-21627","published":"2024-01-02T21:03:17Z","modified":"2025-06-03T14:45:21Z","title":"Some attribute not escaped in Validate::isCleanHTML method","vendor":"PrestaShop","product":"PrestaShop","tier":"tail","description":{"text":"PrestaShop is an open-source e-commerce platform. Prior to versions 8.1.3 and 1.7.8.11, some event attributes are not detected by the `isCleanHTML` method. Some modules using the `isCleanHTML` method could be vulnerable to cross-site scripting. Versions 8.1.3 and 1.7.8.11 contain a patch for this issue. The best workaround is to use the `HTMLPurifier` library to sanitize html input coming from users. The library is already available as a dependency in the PrestaShop project. Beware though that in legacy object models, fields of `HTML` type will call `isCleanHTML`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0068,"percentile":0.47561,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-xgpm-q3mq-46rq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/73cfb44666818eefd501b526a894fe884dd12129","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/ba06d18466df5b92cb841d504cc7210121104883","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.51},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"prestashop","affectedVersions":[{"vendor":"PrestaShop","product":"PrestaShop","versions":[">= 8.0.0, < 8.1.3","< 1.7.8.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-05-08T15:48:20.023420Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":[">=8.0.0-beta.1, <8.1.3","<1.7.8.11"],"patched":["8.1.3","1.7.8.11"],"from":["GHSA-xgpm-q3mq-46rq"],"provenance":"source"}],"summary":{"text":"The flaw is in the Validate::isCleanHTML method of PrestaShop, the open-source e-commerce platform, where some event attributes are not detected by the validation check. Modules that rely on isCleanHTML can therefore be exposed to cross-site scripting, and an attacker with high-privilege access who gets a user to interact with a crafted page can inject script that executes in the context of that user's session, potentially compromising confidentiality and integrity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:13Z"},"euvd":{"id":"EUVD-2024-0457","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-39526","published":"2023-08-07","fixed":"8.1.1","kev":false,"link":{"from":"CVE-2023-39526","to":"CVE-2024-21627","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.10","toFixed":"1.7.8.11","daysApart":148}]}},{"cve":"CVE-2023-39530","published":"2023-08-07","fixed":"8.1.1","kev":false},{"cve":"CVE-2023-43663","published":"2023-09-28","fixed":"8.1.2","kev":false},{"cve":"CVE-2023-43664","published":"2023-09-28","fixed":"8.1.2","kev":false,"link":{"from":"CVE-2023-43664","to":"CVE-2024-21627","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"8.1.2","toFixed":"8.1.3","daysApart":96}]}},{"cve":"CVE-2024-21627","published":"2024-01-02","fixed":"8.1.3","kev":false},{"cve":"CVE-2024-21628","published":"2024-01-02","fixed":"8.1.3","kev":false},{"cve":"CVE-2024-26129","published":"2024-02-19","fixed":"8.1.4","kev":false,"link":{"from":"CVE-2024-21627","to":"CVE-2024-26129","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"8.1.3","toFixed":"8.1.4","daysApart":48}]}},{"cve":"CVE-2024-34716","published":"2024-05-14","fixed":"8.1.6","kev":false}],"package":"Packagist:prestashop/prestashop"}}