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).
Recommendation
Update the sanitize-html package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.12.1
- Patched version(s): 2.12.1
References
Could your website be exposed too?
SmartScanner can check your website for sanitize-html Information Exposure vulnerability and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Sanitize-html Vulnerable To REDoS Attacks - CVE-2022-25887
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting <noscript> content rende - CVE-2026-113654
- Cross-Site Scripting in sanitize-html - sanitize-html - CVE-2017-16016


