p PatchFirst

CVE-2024-21501

CVE-2024-21501

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 1.0% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • sanitize-html

    Versions
    • ≥ 0, < 2.12.1: Affected (semver)

    Update to 2.12.1

  • org.webjars.npm:sanitize-html

    Versions
    • ≥ 0: Affected (semver)

    No fix published

  • node-sanitize-html Debian:12

    Versions
    • 2.13.0+~2.11.0-1
    • 2.13.1+~2.13.0-1
    • 2.14.0+~2.13.0-1
    • 2.17.0+~2.16.1-1
    • 2.8.0+~2.6.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-sanitize-html Debian:13

    Affected ranges
    • ECOSYSTEM: < 2.13.0+~2.11.0-1

    Update to 2.13.0+~2.11.0-1

  • node-sanitize-html Debian:14

    Affected ranges
    • ECOSYSTEM: < 2.13.0+~2.11.0-1

    Update to 2.13.0+~2.11.0-1

  • sanitize-html npm

    Affected ranges
    • SEMVER: < 2.12.1

    Update to 2.12.1

  • node-sanitize-html Ubuntu:22.04:LTS

    Versions
    • 2.6.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-sanitize-html Ubuntu:24.04:LTS

    Versions
    • 2.8.0+~2.6.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-sanitize-html Ubuntu:25.10

    Versions
    • 2.14.0+~2.13.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-sanitize-html Ubuntu:26.10

    Versions
    • 2.14.0+~2.13.0-1
    • 2.17.0+~2.16.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-sanitize-html Ubuntu:26.04:LTS

    Versions
    • 2.14.0+~2.13.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →