Information disclosure in sanitize-html - CVE-2024-21501
Published: April 17, 2024
Vulnerability identifier: #VU88801
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-21501
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: ApostropheCMS
Affected software:
sanitize-html
sanitize-html
Detailed vulnerability description
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to excessive data output by the application when used on the backend and with the style attribute allowed. A remote attacker can enumerate files on the system, including project dependencies.
How to mitigate CVE-2024-21501
Install updates from vendor's website.
Sources
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334
- https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf
- https://github.com/apostrophecms/sanitize-html/pull/650
- https://github.com/apostrophecms/apostrophe/discussions/4436
- https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557