The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before…
Historical advisory recorded 24 Oct 2026 18:17:28 UTC. Read the latest advisory.
nvd · CVE-2021-32696
PublishedThe 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2021-32696
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-79 · CWE-241 · CWE-843
Original publisher date fields
published: 2021-06-18T20:15:07.633
lastModified: 2026-06-17T03:53:26.750
1 source CPE criteria · context only
- cpe:2.3:a:striptags_project:striptags:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON