cve.bz

CVE-2024-21501

5.3 mediumExploit referenceEPSS 1.0%Fix available

Medium (5.3). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in sanitize-html 2.12.1.

On this page
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.

Severity

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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-08-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-21501 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-21501?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-21501?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-21501 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apostrophecms:sanitize-htmlbefore 2.12.1
fedoraproject:fedora39
fedoraproject:fedora40

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rm97-x556-q36hnpmsanitize-html<2.12.12.12.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-sanitize-htmlno fix listedDEBIAN-CVE-2024-21501
Debian13, 14node-sanitize-html2.13.0+~2.11.0-1DEBIAN-CVE-2024-21501
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morenode-sanitize-htmlno fix listedUBUNTU-CVE-2024-21501

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
multicluster engine for Kubernetes 2.4 for RHEL 8multicluster-engine/console-mce-rhel8:v2.4.5-25Fixed 2024-06-03RHBA-2024:3555
multicluster engine for Kubernetes 2.4 for RHEL 8multicluster-engine/multicluster-engine-console-mce-rhel8:v2.4.5-25Fixed 2024-06-03RHBA-2024:3555
multicluster engine for Kubernetes 2.5 for RHEL 9multicluster-engine/console-mce-rhel9:v2.5.2-6Fixed 2024-04-10RHBA-2024:1775
multicluster engine for Kubernetes 2.5 for RHEL 9multicluster-engine/multicluster-engine-console-mce-rhel9:v2.5.2-6Fixed 2024-04-10RHBA-2024:1775
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9rhacm2/console-rhel9:v2.10.1-3Fixed 2024-04-11RHBA-2024:1793
Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8rhacm2/console-rhel8:v2.9.4-22Fixed 2024-06-04RHBA-2024:3593
Red Hat OpenShift Container Platform 4.15openshift4/ose-monitoring-plugin-rhel8:v4.15.0-202404031310.p0.ge8f7503.assembly.stream.el8Fixed 2024-04-16RHSA-2024:1770
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Affected
Red Hat OpenShift Container Platform 3.11openshift3/ose-consoleNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleNot affected
Red Hat OpenShift Dev Spacesdevspaces/dashboard-rhel8Will not fix
Red Hat Quay 3quay/quay-rhel8Affected
Red Hat Satellite 6nodejs-redhat-cloud-services-frontend-componentsAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-21501.

Attack patterns (CAPEC)

  • CAPEC-95 WSDL Scanning Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON