Description
A type-confusion vulnerability can cause striptags to concatenate unsanitized strings when an array-like object is passed in as the html parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function.
Recommendation
Update the striptags package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.2.0
- Patched version(s): 3.2.0
References
Could your website be exposed too?
SmartScanner can check your website for Passing in a non-string 'html' argument can lead to unsanitized output and gives you actionable findings to investigate.
Start a free scanRelated Issues
- protobufjs: Text Format string map parsing can mutate returned map object prototype - CVE-2026-59876
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - html-parse-stringify - CVE-2021-23346
- Happy DOM: VM Context Escape can lead to Remote Code Execution - CVE-2025-61927


