CVE-2024-21501 sanitize-html Information Exposure vulnerability
MediumCVSS 5.3
EPSS 1.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
11 packages: 4 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-sanitize-html(Debian 12) | = 2.8.0+~2.6.2-1; = 2.13.0+~2.11.0-1; = 2.13.1+~2.13.0-1; = 2.14.0+~2.13.0-1 +2 more | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 22.04) | = 2.6.1-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 24.04) | = 2.8.0+~2.6.2-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 25.10) | = 2.14.0+~2.13.0-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 26.04) | = 2.14.0+~2.13.0-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 26.10) | = 2.14.0+~2.13.0-1; = 2.17.0+~2.16.1-1; All versions | No fix listed | No fix yet |
| apostrophecms sanitize-html | < 2.12.1 | 2.12.1 | Fixed |
| debian/node-sanitize-html(Debian 13) | < 2.13.0+~2.11.0-1 | 2.13.0+~2.11.0-1 | Fixed |
| debian/node-sanitize-html(Debian 14) | < 2.13.0+~2.11.0-1 | 2.13.0+~2.11.0-1 | Fixed |
| npm sanitize-html(npm) | < 2.12.1 | 2.12.1 | Fixed |
| fedoraproject fedora | = 39; = 40 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-sanitize-html(Debian:12) | All versions | No fix listed |
| debian/node-sanitize-html(Debian:12) | = 2.13.0+~2.11.0-1 | No fix listed |
| debian/node-sanitize-html(Debian:12) | = 2.13.1+~2.13.0-1 | No fix listed |
| debian/node-sanitize-html(Debian:12) | = 2.14.0+~2.13.0-1 | No fix listed |
| debian/node-sanitize-html(Debian:12) | = 2.17.0+~2.16.1-1 | No fix listed |
| debian/node-sanitize-html(Debian:12) | = 2.8.0+~2.6.2-1 | No fix listed |
| debian/node-sanitize-html(Debian:13) | < 2.13.0+~2.11.0-1 | 2.13.0+~2.11.0-1 |
| debian/node-sanitize-html(Debian:14) | < 2.13.0+~2.11.0-1 | 2.13.0+~2.11.0-1 |
| npm sanitize-html(npm) | < 2.12.1 | 2.12.1 |
| ubuntu/node-sanitize-html(Ubuntu:22.04) | All versions | No fix listed |
| apostrophecms sanitize-html | < 2.12.1 | 2.12.1 |
| ubuntu/node-sanitize-html(Ubuntu:24.04) | All versions | No fix listed |
| fedoraproject fedora | = 39 | No fix listed |
| fedoraproject fedora | = 40 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:22.04) | = 2.6.1-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:24.04) | = 2.8.0+~2.6.2-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:25.10) | = 2.14.0+~2.13.0-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | = 2.14.0+~2.13.0-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | = 2.17.0+~2.16.1-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.04) | = 2.14.0+~2.13.0-1 | No fix listed |
References
- Debian Security Tracker CVE-2024-21501 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- github.com issue-tracking patch
- gist.github.com exploit issue-tracking third-party-advisory
- github.com issue-tracking
- security.snyk.io exploit issue-tracking third-party-advisory
- security.snyk.io exploit third-party-advisory
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product
- github.com issue-tracking
- github.com issue-tracking