Vulnerability Description
The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, 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. This can lead to a XSS.
CVSS Score
LOW
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Striptags Project | Striptags | < 3.2.0 |
Related Weaknesses (CWE)
References
- https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc92PatchThird Party Advisory
- https://github.com/ericnorris/striptags/releases/tag/v3.2.0Third Party Advisory
- https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49rThird Party Advisory
- https://www.npmjs.com/package/striptagsProductThird Party Advisory
- https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc92PatchThird Party Advisory
- https://github.com/ericnorris/striptags/releases/tag/v3.2.0Third Party Advisory
- https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49rThird Party Advisory
- https://www.npmjs.com/package/striptagsProductThird Party Advisory
FAQ
What is CVE-2021-32696?
CVE-2021-32696 is a vulnerability with a CVSS score of 3.7 (LOW). The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, a type-confusion vulnerability can cause `striptags` to concatenate unsanitized s...
How severe is CVE-2021-32696?
CVE-2021-32696 has been rated LOW with a CVSS base score of 3.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-32696?
Check the references section above for vendor advisories and patch information. Affected products include: Striptags Project Striptags.