CVE catalog

CVE-2024-21501

node-sanitize-html: CVE-2024-21501

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.03% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-sanitize-htmlsid2.17.0+~2.16.1-1fixed
Debiannode-sanitize-htmlforky2.17.0+~2.16.1-1fixed
Debiannode-sanitize-htmltrixie2.14.0+~2.13.0-1fixed
Debiannode-sanitize-htmlbookworm2.8.0+~2.6.2-1vulnerable
Npmsanitize-htmlNot reported2.12.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-sanitize-htmlsourcesid2.13.0+~2.11.0-1not yet assignedNot reported[1064808]
Debiannode-sanitize-htmlsourceforky2.13.0+~2.11.0-1not yet assignedNot reported[1064808]
Debiannode-sanitize-htmlsourcetrixie2.13.0+~2.11.0-1not yet assignedNot reported[1064808]
Debiannode-sanitize-htmlsourcebookworm(unfixed)not yet assignedNot reported[1064808]
Npmsanitize-htmlnpmNot reported2.12.1Not reportedGHSA-RM97-X556-Q36HNot reported

[Debian bug #1064808]

Notes

[bookworm] node-sanitize-html: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References