Information disclosure in Apostrophecms Sanitize-Html
CVE-2024-21501
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.010, 64.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Apostrophecms Sanitize-Html
- Fedoraproject Fedora — versions 39, 40
- Org.webjars.npm:sanitize-Html — versions 0
- Sanitize-Html — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334 (Exploit, Third Party Advisory)
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557 (Exploit, Third Party Advisory)
- gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf (Exploit, Third Party Advisory)
- github.com/apostrophecms/sanitize-html/pull/650 (Patch)
- github.com/apostrophecms/apostrophe/discussions/4436 (Issue Tracking)
- github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb452… (Patch)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)