Medium severity · published Feb 24, 2024
CVE-2024-21501
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…
5.3
CVSS
1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 64% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OR
org.webjars.npm:sanitize-html ·
0 · source: vendor
SA
sanitize-html ·
before 2.12.1 · source: vendor, NVD, CISA
FE
Fedora · Fedoraproject
39; 40 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-21501
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-21501
Exploit
https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf
Issue Tracking
https://github.com/apostrophecms/apostrophe/discussions/4436
Patch
https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
Patch
https://github.com/apostrophecms/sanitize-html/pull/650
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/
