CVE-2021-32696Passing in a non-string 'html' argument can lead to unsanitized output
- 3.7LowCVSS base score
- 1.1%Exploitation in 30 daysEPSS · top 34% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 37 days later
· 37 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Low3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.1% · top 34% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.7.
Affected products
- affected < 3.2.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmstriptagsGHSA-qxg5-2qff-p49r (opens in a new tab)
References
References4
- https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ericnorris/striptags/releases/tag/v3.2.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/package/striptags (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1388 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-qxg5-2qff-p49r (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-32696)Record last updated .