Information disclosure in sanitize-html
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 5 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | sanitize-html | before 2.12.1 | 2.12.1 | Patch available | CNA |
| — | org.webjars.npm:sanitize-html | all versions | — | No fix listed | CNA |
| — | sanitize-html (npm) | before 2.12.1 | 2.12.1 | Patch available | GHSA-rm97-x556-q36h |
- sanitize-html Vendor— Affected before 2.12.1 Fixed in 2.12.1 Patch available CNA
- org.webjars.npm:sanitize-html Vendor— Affected all versions Fixed in — No fix listed CNA
- sanitize-html (npm) Vendor— Affected before 2.12.1 Fixed in 2.12.1 Patch available GHSA-rm97-x556-q36h
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* | before 2.12.1 | Vulnerable | apostrophecms |
| cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* | 39 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* | 40 | Vulnerable | Fedoraproject |
- cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* Versions before 2.12.1 Vulnerable ·apostrophecms
- cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Versions 39 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* Versions 40 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA sanitize-html Fixed in 2.12.1
- Fix · GHSA-rm97-x556-q36h sanitize-html (npm) Fixed in 2.12.1 Advisory →
Red Hat 1 advisory
- RHSA-2024:1770 Released 2024-04-16 · Red Hat rating ImportantOpenShift Container Platform 4.15.9 bug fix and security update
- Red Hat OpenShift Container Platform 4.15 openshift4/cloud-network-config-controller-rhel8, openshift4/egress-router-cni-rhel8, openshift4/kube-metrics-server-rhel8 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1 | Affected | No fix yet |
| Red Hat OpenShift Dev Spaces | Affected | No fix planned: Will not fix |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9 | Fixed | — |
| Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8 | Fixed | — |
| Red Hat OpenShift Container Platform 4.15 | Fixed | RHSA-2024:1770 |
| multicluster engine for Kubernetes 2.4 for RHEL 8 | Fixed | — |
| multicluster engine for Kubernetes 2.5 for RHEL 9 | Fixed | — |
Not affected: 8 products
- Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9
- Red Hat Advanced Cluster Management for Kubernetes 2.9 for RHEL 8
- Red Hat OpenShift Container Platform 3.11
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.15
- multicluster engine for Kubernetes 2.4 for RHEL 8
- multicluster engine for Kubernetes 2.5 for RHEL 8
- multicluster engine for Kubernetes 2.5 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21501
- 2026-10-03 Alias added: GHSA-rm97-x556-q36h
- 2026-10-27 Affected versions changed · Red Hat
References
Patch 2
Other 6
- https://github.com/apostrophecms/apostrophe/discussions/4436
- https://lists.fedoraproject.org/archives/list/[email protected]/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/
- https://github.com/apostrophecms/sanitize-html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7
- https://lists.fedoraproject.org/archives/list/[email protected]/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S
Sources
- CVE-2024-21501 · CVE Program
- CVE-2024-21501 · NVD
- FIRST EPSS
- GHSA-rm97-x556-q36h · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21501 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences