Skip to content
OpenAdvisories
Medium · 5.3 CVE-2024-21501 EUVD-2024-0719GHSA-rm97-x556-q36h

sanitize-html Information Exposure vulnerability

Published Feb 24, 2024 · Updated Feb 13, 2025 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— sanitize-html < 2.12.1 2.12.1
— org.webjars.npm:sanitize-html — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-sanitize-html 2.13.0+~2.11.0-1 —
Debian 13 node-sanitize-html 2.13.0+~2.11.0-1 —
Debian 12 node-sanitize-html No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-sanitize-html No fix yet —
Ubuntu 26.04 LTS node-sanitize-html No fix yet —
Ubuntu 25.10 node-sanitize-html No fix yet —
Ubuntu 24.04 LTS node-sanitize-html No fix yet —
Ubuntu 22.04 LTS node-sanitize-html No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling py3.10-jupyterlab +3 4.6.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm sanitize-html < 2.12.1 2.12.1 GHSA-rm97-x556-q36h

Advisories 2

References