Skip to main content
MEDIUM

CVE-2024-21501

CVSS v3

5.3

MEDIUM

EPSS Score

1.0 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for sanitize-html.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • sanitize-htmlnpmall versions · fixed in 2.12.1

Vendor advisories

  • CVE-2024-21501 Red Hat Product Security28 products fixed · 4 known affected

    sanitize-html: Information Exposure when used on the backend

    rhdh/rhdh-hub-rhel9 as a component of Red Hat Developer Hub · devspaces/dashboard-rhel8 as a component of Red Hat OpenShift Dev Spaces · quay/quay-rhel8 as a component of Red Hat Quay 3

  • RHBA-2024:3593 Red Hat Product Security4 products fixed

    Red Hat Bug Fix Advisory: Red Hat Advanced Cluster Management 2.9.4 bug fixes and container updates

  • RHBA-2024:3555 Red Hat Product Security8 products fixed

    Red Hat Bug Fix Advisory: multicluster engine for Kubernetes 2.4.5 bug fixes and container updates

  • RHSA-2024:1770 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.15.9 bug fix and security update

  • RHBA-2024:1793 Red Hat Product Security4 products fixed

    Red Hat Bug Fix Advisory: Red Hat Advanced Cluster Management 2.10.1 bug fix advisory

  • RHBA-2024:1775 Red Hat Product Security8 products fixed

    Red Hat Bug Fix Advisory: Multicluster Engine for Kubernetes 2.5.2 bug fixes and container updates

Full record on NVD

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.

Technical details

Published
2024-02-24

Frequently asked questions

What is CVE-2024-21501?

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.

Is CVE-2024-21501 actively exploited?

Active exploitation of CVE-2024-21501 has not been confirmed. Its EPSS score was 1.0% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-21501?

CVE-2024-21501 has a CVSS v3 base score of 5.3 (MEDIUM severity).

Running sanitize-html? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month