# CVE-2024-21501: sanitize-html Information Exposure vulnerability

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-02-24T05:00:02.731Z
- Modified: 2026-09-10T03:50:09.893Z
- Also known as: GHSA-rm97-x556-q36h
- Weaknesses: CWE-200, CWE-538
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- sanitize-html: before 2.12.1
- org.webjars.npm:sanitize-html: before *
- apostrophecms sanitize-html: before 2.12.1
- sanitize-html (npm): before 2.12.1
- fedoraproject fedora: 39; 40

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557> (exploit, third-party-advisory, web)
- <https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf> (exploit, third-party-advisory, web)
- <https://github.com/apostrophecms/sanitize-html/pull/650> (patch, web)
- <https://github.com/apostrophecms/apostrophe/discussions/4436> (issue-tracking, web)
- <https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4> (patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21501> (advisory)
- <https://github.com/apostrophecms/sanitize-html> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S> (web)

## Sources

- CVE List: [CVE-2024-21501](https://www.cve.org/CVERecord?id=CVE-2024-21501), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-rm97-x556-q36h](https://github.com/advisories/GHSA-rm97-x556-q36h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-21501](https://nvd.nist.gov/vuln/detail/CVE-2024-21501), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21501 · Whole record: https://cve.day/CVE-2024-21501.json · Rebuilt by cve.day 2026-11-25T22:58:37.039Z
