Some attribute not escaped in Validate::isCleanHTML method
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`.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-21627
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:43 UTC · Revision 1
Source evidence
Some attribute not escaped in Validate::isCleanHTML method
core-osv · Original sourcePublished 2 Jan 2024, 21:03 UTC
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`.
osv:CVE-2024-21627
Complete source record
{
"id": "933980fc3c690092040d4274c9dac732fa3582580c3ba871b548a96a6c763276",
"url": "https://osv.dev/vulnerability/CVE-2024-21627",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Some attribute not escaped in Validate::isCleanHTML method",
"summary": "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`.",
"evidence": "osv:CVE-2024-21627",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-21627",
"aliases": [
"CVE-2024-21627",
"GHSA-xgpm-q3mq-46rq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/prestashop/prestashop",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0a0b7c83f3ae4fbbc1aca0ac94332ec3184101f7"
},
{
"introduced": "ca9d81aae0bb17f3e767bb5d835348ed144a3ab5"
},
{
"fixed": "67fc1aedf438639f41207f5f728046f92865e532"
},
{
"fixed": "73cfb44666818eefd501b526a894fe884dd12129"
},
{
"fixed": "ba06d18466df5b92cb841d504cc7210121104883"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.7.8.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.1.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "73cfb44666818eefd501b526a894fe884dd12129"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ba06d18466df5b92cb841d504cc7210121104883"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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"
}
}
],
"modified": "2026-10-28T02:30:20.864089886Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json",
"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-xgpm-q3mq-46rq",
"https://nvd.nist.gov/vuln/detail/CVE-2024-21627",
"https://github.com/PrestaShop/PrestaShop/commit/73cfb44666818eefd501b526a894fe884dd12129",
"https://github.com/PrestaShop/PrestaShop/commit/ba06d18466df5b92cb841d504cc7210121104883"
],
"provider_metadata": {
"cwe_ids": [
"CWE-20",
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json"
}
},
"related_cves": [
{
"value": "CVE-2024-21627",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487334,
"published_at": "2024-01-02T21:03:17.816+00:00"
}