Advisory

GHSA-rm97-x556-q36h

Also known as: CVE-2024-21501

Summary

sanitize-html Information Exposure vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-02-24 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

sanitize-html

npm · All systems

Affected

  • introduced 0, fixed 2.12.1 (semver)

Fixed versions

2.12.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences