CVE-2024-21501

sanitize-html: Information Exposure when used on the backend

Published Feb 24, 2024 CVSS 3.1 · 5.3 Medium EPSS 1.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0719 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.
Github GHSA Github GHSA GHSA-rm97-x556-q36h sanitize-html Information Exposure vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01341}

epss

{'score': 0.01378}

Type Values Removed Values Added
Metrics epss

{'score': 0.00991}

epss

{'score': 0.01341}

Type Values Removed Values Added
First Time appeared Fedoraproject
Fedoraproject fedora
CPEs cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
Vendors & Products Fedoraproject
Fedoraproject fedora
Type Values Removed Values Added
First Time appeared Apostrophecms
Apostrophecms sanitize-html
CPEs cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*
Vendors & Products Apostrophecms
Apostrophecms sanitize-html
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat acm
Redhat multicluster Engine
CPEs cpe:/a:redhat:acm:2.10::el9
cpe:/a:redhat:acm:2.9::el8
cpe:/a:redhat:multicluster_engine:2.4::el8
cpe:/a:redhat:multicluster_engine:2.5::el8
Vendors & Products Redhat acm
Redhat multicluster Engine
Type Values Removed Values Added
Weaknesses CWE-538
Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Feb 13, 2025, 5:33 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Analyzed
Published
Feb 24, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM
Severity
Moderate
Public date
Feb 24, 2024, 12:00 AM