Description
Affected versions of sanitize-html do not sanitize input recursively, which may allow an attacker to execute arbitrary Javascript.
Recommendation
Update the sanitize-html package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.4.3
- Patched version(s): 1.4.3
References
- GHSA-3j7m-hmh3-9jmp
- raw.githubusercontent.com
- www.npmjs.com
- CVE-2016-1000237
- CWE-79
- CAPEC-310
- OWASP 2021-A3
- OWASP 2021-A6
Related Issues
- XSS in the `of` option of the `.position()` util in jquery-ui - CVE-2021-41184
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies - CVE-2025-48947
- Strapi allows Server-Side Request Forgery in Webhook function - CVE-2024-52588
- Tags:
- npm
- sanitize-html
Anything's wrong? Let us know Last updated on January 09, 2023