{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21627","id":"CVE-2024-21627","title":"Some attribute not escaped in Validate::isCleanHTML method","description":"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 use","descriptionLong":"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`.","published":"2024-01-02T21:03:17.816Z","updated":"2026-10-28T02:30:20.864089886Z","reserved":"2023-12-29T03:00:44.954Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["PrestaShop"],"affectedProducts":[{"vendor":"PrestaShop","product":"PrestaShop","defaultStatus":null,"versions":[{"version":">= 8.0.0, < 8.1.3","status":"affected"},{"version":"< 1.7.8.11","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"prestashop/prestashop","purl":"pkg:composer/prestashop/prestashop","ranges":[">=8.0.0-beta.1 <8.1.3","<1.7.8.11"],"fixed":["8.1.3","1.7.8.11"],"advisory":"GHSA-xgpm-q3mq-46rq"}],"cwes":["CWE-79","CWE-20"],"aliases":["GHSA-xgpm-q3mq-46rq"],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-xgpm-q3mq-46rq","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/73cfb44666818eefd501b526a894fe884dd12129","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/ba06d18466df5b92cb841d504cc7210121104883","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21627","tags":["advisory"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/0ed1af8de500538490f88e9e794e2e8113fb8df7","tags":["web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/f799dcff564cd1b7ead932ffc3343b675107dbce","tags":["web"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00523,"epssPercentile":0.45101,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21627","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21627","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21627","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xgpm-q3mq-46rq","ok":true,"note":"GHSA-xgpm-q3mq-46rq"},{"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-2024-21627","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}