CVE-2024-21501Apostrophecms Sanitize-html
Medium 5.3 No auth needed
Follow: this CVE · Apostrophecms · Apostrophecms Sanitize-html We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Feb 24, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Sanitize-html.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | sanitize-html |
< 2.12.1 |
2.12.1 |
npm install sanitize-html@2.12.1 |
Per OSV / GitHub Advisories (GHSA-rm97-x556-q36h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apostrophecms | sanitize-html | < 2.12.1 |
| fedoraproject | fedora | 39 |
| fedoraproject | fedora | 40 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Third Party Advisory
- github.com Issue Tracking
- github.com Patch
- github.com Patch
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List
- security.snyk.io Exploit Third Party Advisory
- security.snyk.io Exploit Third Party Advisory