Live threats

All CVEs / Apostrophecms

CVE-2024-21501Apostrophecms Sanitize-html

Medium 5.3 No auth needed

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
Weakness (CWE)
CWE-200, CWE-538
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sanitize-html.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
apostrophecmssanitize-html< 2.12.1
fedoraprojectfedora39
fedoraprojectfedora40

Official sources

References

Links published by the sources. Open them with care.