CVE-2024-21501 json
sanitize-html Information Exposure vulnerability
published 2024-02-24 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-0719 , GHSA-rm97-x556-q36h
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm sanitize-html 2.12.1
- n/a sanitize-html 2.12.1
- apostrophecms sanitize-html 2.12.1
- node-sanitize-html Debian 14, Debian 13 2.13.0+~2.11.0-1
debian advisories DEBIAN-CVE-2024-21501
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-21501 updated cvss 5.3
sanitize-html: Information Exposure when used on the backend
-
Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9affected: no fix available
-
Red Hat OpenShift Dev Spaces devspaces/dashboard-rhel8affected: no fix planned “Will not fix”
-
Red Hat Quay 3 quay/quay-rhel8 Red Hat Satellite 6 nodejs-redhat-cloud-services-frontend-componentsaffected: no fix available
-
Red Hat multicluster engine for Kubernetes 2.4 for RHEL 8 multicluster-engine/console-mce-rhel8 v2.4.5-25, multicluster-engine/multicluster-engine-console-mce-rhel8 v2.4.5-25fixed: vendor fix RHBA-2024:3555
-
Red Hat multicluster engine for Kubernetes 2.5 for RHEL 9 multicluster-engine/console-mce-rhel9 v2.5.2-6, multicluster-engine/multicluster-engine-console-mce-rhel9 v2.5.2-6fixed: vendor fix RHBA-2024:1775
-
Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8 rhacm2/console-rhel8 v2.9.4-22fixed: vendor fix RHBA-2024:3593
-
Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9 rhacm2/console-rhel9 v2.10.1-3fixed: vendor fix RHBA-2024:1793
-
Red Hat OpenShift Container Platform 4.15 openshift4/ose-monitoring-plugin-rhel8 v4.15.0-202404031310.p0.ge8f7503.assembly.stream.el8fixed: vendor fix RHSA-2024:1770
show 1 moreshow fewer
-
Red Hat multicluster engine for Kubernetes 2.4 for RHEL 8 multicluster-engine/hive-rhel8 v2.4.5-21, multicluster-engine/work-rhel8 v2.4.5-21, multicluster-engine/discovery-rhel8 v2.4.5-22, multicluster-engine/placement-rhel8 v2.4.5-21, multicluster-engine/cluster-api-rhel8 v2.4.5-19, multicluster-engine/must-gather-rhel8 v2.4.5-23, +34 more Red Hat multicluster engine for Kubernetes 2.5 for RHEL 8 multicluster-engine/hive-rhel8 v2.5.2-3, multicluster-engine/agent-service-rhel8 v2.5.2-4, multicluster-engine/assisted-installer-rhel8 v2.5.2-2, multicluster-engine/assisted-image-service-rhel8 v2.5.2-2, multicluster-engine/assisted-installer-agent-rhel8 v2.5.2-2, multicluster-engine/assisted-installer-reporter-rhel8 v2.5.2-2 Red Hat multicluster engine for Kubernetes 2.5 for RHEL 9 multicluster-engine/work-rhel9 v2.5.2-2, multicluster-engine/discovery-rhel9 v2.5.2-1, multicluster-engine/placement-rhel9 v2.5.2-2, multicluster-engine/cluster-api-rhel9 v2.5.2-1, multicluster-engine/must-gather-rhel9 v2.5.2-1, multicluster-engine/registration-rhel9 v2.5.2-2, +29 more Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8 rhacm2/thanos-rhel8 v2.9.4-15, rhacm2/memcached-rhel8 v2.9.4-15, rhacm2/prometheus-rhel8 v2.9.4-15, rhacm2/acm-grafana-rhel8 v2.9.4-16, rhacm2/acm-operator-bundle v2.9.4-30, rhacm2/acm-search-v2-rhel8 v2.9.4-16, +37 more Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9 rhacm2/thanos-rhel9 v2.10.1-1, rhacm2/memcached-rhel9 v2.10.1-1, rhacm2/prometheus-rhel9 v2.10.1-1, rhacm2/acm-grafana-rhel9 v2.10.1-1, rhacm2/acm-operator-bundle v2.10.1-5, rhacm2/acm-search-v2-rhel9 v2.10.1-2, +37 more Red Hat OpenShift Container Platform 3.11 openshift3/ose-consolenot affected: vulnerable code not present
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift4/ose-console Red Hat OpenShift Container Platform 4.15 openshift4/ose-cli v4.15.0-202404030309.p0.g62c4d45.assembly.stream.el8, openshift4/ose-tests v4.15.0-202404030309.p0.gf4b2b24.assembly.stream.el8, openshift4/ose-console v4.15.0-202404030309.p0.geb9d956.assembly.stream.el8, openshift4/ose-deployer v4.15.0-202404030309.p0.g62c4d45.assembly.stream.el8, openshift4/ose-installer v4.15.0-202404030309.p0.gc4f2d7c.assembly.stream.el8, openshift4/ose-multus-cni v4.15.0-202404030309.p0.gc9b9d67.assembly.stream.el8, +63 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334 referenced PoC, tagged "exploit" by a source, unverified
- security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | sanitize-html | <2.12.1 |
2.12.1 |
Affected products
- n/a sanitize-html
- n/a org.webjars.npm:sanitize-html
- apostrophecms sanitize-html
Classification
References
-
github.com
/apostrophecms/sanitize-html/pull/650
web, patch
-
github.com
/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
web, patch
-
security.snyk.io
/vuln/SNYK-JS-SANITIZEHTML-6256334
web, exploit, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557
web, exploit, third-party-advisory
-
gist.github.com
/Slonser/8b4d061abe6ee1b2e10c7242987674cf
web, exploit, third-party-advisory
-
github.com
/apostrophecms/apostrophe/discussions/4436
web, issue-tracking
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2024-21501
advisory
-
github.com
/apostrophecms/sanitize-html
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S
web
Sources
- CVE List CVE-2024-21501
- GitHub Advisory GHSA-rm97-x556-q36h
- NVD CVE-2024-21501
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.