{"id":"CVE-2024-21627","summary":"Some attribute not escaped in Validate::isCleanHTML method","details":"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`.","aliases":["GHSA-xgpm-q3mq-46rq"],"modified":"2026-08-12T03:51:24.936789887Z","published":"2024-01-02T21:03:17.816Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-20","CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json"},{"type":"ADVISORY","url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-xgpm-q3mq-46rq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21627"},{"type":"FIX","url":"https://github.com/PrestaShop/PrestaShop/commit/73cfb44666818eefd501b526a894fe884dd12129"},{"type":"FIX","url":"https://github.com/PrestaShop/PrestaShop/commit/ba06d18466df5b92cb841d504cc7210121104883"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/prestashop/prestashop","events":[{"introduced":"0"},{"fixed":"0a0b7c83f3ae4fbbc1aca0ac94332ec3184101f7"},{"introduced":"ca9d81aae0bb17f3e767bb5d835348ed144a3ab5"},{"fixed":"67fc1aedf438639f41207f5f728046f92865e532"},{"fixed":"73cfb44666818eefd501b526a894fe884dd12129"},{"fixed":"ba06d18466df5b92cb841d504cc7210121104883"}],"database_specific":{"cpe":"cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.7.8.11"},{"introduced":"8.0.0"},{"fixed":"8.1.3"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.7.8.3","1.7.0.0-rc.0.0","1.7.0.0-beta.4.0","1.7.0.0-beta.2.0","1.7.0.0-beta.1.0","1.6.1.0","1.6.0.3","1.6.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21627.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N"}]}