CVE-2021-32696
Striptags Project Striptags vulnerability
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.
Affected products
Striptags. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Striptags Project Striptags runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca · Patch
- github.com/ericnorris/striptags/releases/tag/v3.2.0 · Third Party Advisory
- github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r · Third Party Advisory
- www.npmjs.com/package/striptags · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-32696
- cve.org/CVERecord?id=CVE-2021-32696
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.