CVE-2024-21501

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-21501
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21501.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-21501
Aliases
Related
Published
2024-02-24T05:15:44Z
Modified
2025-04-25T20:47:01.082960Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

Debian:12 / node-sanitize-html

Package

Name
node-sanitize-html
Purl
pkg:deb/debian/node-sanitize-html?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.8.0+~2.6.2-1
2.13.0+~2.11.0-1
2.13.1+~2.13.0-1
2.14.0+~2.13.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-sanitize-html

Package

Name
node-sanitize-html
Purl
pkg:deb/debian/node-sanitize-html?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13.0+~2.11.0-1

Affected versions

2.*

2.8.0+~2.6.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/apostrophecms/sanitize-html

Affected ranges

Type
GIT
Repo
https://github.com/apostrophecms/sanitize-html
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

1.*

1.10.1
1.11.0
1.11.1
1.11.4
1.18.2
1.18.3
1.18.4
1.18.5
1.19.0
1.19.1
1.19.2
1.19.3
1.20.0
1.21.0
1.21.1
1.22.0
1.27.4

2.*

2.0.0
2.1.0
2.1.1
2.1.2
2.10.0
2.11.0
2.2.0
2.3.0
2.3.1
2.3.2
2.3.3
2.4.0
2.5.0
2.5.1
2.5.2
2.5.3
2.6.0
2.6.1
2.7.0
2.7.1
2.7.2
2.7.3
2.8.0
2.8.1
2.9.0

v1.*

v1.5.2
v1.7.0
v1.7.1
v1.7.2
v1.8.0
v1.9.0