CVE-2024-21501
MEDIUM 5.3CVSS 3.1sanitize-html Information Exposure vulnerability
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.
- Published
- 24 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-200CWE-538
- Also known as
- GHSA-rm97-x556-q36h
- Sources
- NVDJSONOSV GHSA-rm97-x556-q36hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apostrophecms | sanitize-htmlcpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* |
< 2.12.1 | 2.12.1 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* |
= 39 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* |
= 40 | |
| OSV | npm | sanitize-html | < 2.12.1 | 2.12.1 |
References
- https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf · Exploit, Third Party Advisory, WEB
- https://github.com/apostrophecms/apostrophe/discussions/4436 · Issue Tracking, WEB
- https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4 · Patch, WEB
- https://github.com/apostrophecms/sanitize-html/pull/650 · Patch, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/ · Mailing List, WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557 · Exploit, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21501 · ADVISORY
- https://github.com/apostrophecms/sanitize-html · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 24 Feb 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Feb 2024)