CVE-2024-21627

Source
https://cve.org/CVERecord?id=CVE-2024-21627
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21627.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-21627
Aliases
Published
2024-01-02T21:03:17.816Z
Modified
2026-08-12T03:51:24.936789887Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-20",
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21627.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/prestashop/prestashop

Affected ranges

Type
GIT
Repo
https://github.com/prestashop/prestashop
Events
Database specific
Show details
{
    "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"
    ]
}

Affected versions

1.*
1.6.0.1
1.6.0.3
1.6.1.0
1.7.0.0-beta.1.0
1.7.0.0-beta.2.0
1.7.0.0-beta.4.0
1.7.0.0-rc.0.0
1.7.8.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21627.json"