CVE-2021-32696: The npm package "striptags" is an implementation of PHP's strip_tags in Typescript
CVE-2021-32696 is a low-severity flaw (CVSS 3.7) affecting striptags. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-32696?
striptags: upgrade to 3.2.0. Exact commands for each OS are on this page.
Is CVE-2021-32696 being exploited?
CVE-2021-32696 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-32696 affect?
CVE-2021-32696 affects striptags. Severity is low (CVSS 3.7). 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 pass
How urgent is CVE-2021-32696?
Priority 34/100. Remotely exploitable, no login, no user action
Software pages
PHP vulnerabilities · npm packages vulnerabilities