# CVE-2021-32696: Passing in a non-string 'html' argument can lead to unsanitized output

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-06-18T19:31:35.000Z
- Modified: 2026-07-08T06:28:10.431Z
- Also known as: GHSA-qxg5-2qff-p49r
- Weaknesses: CWE-79, CWE-241, CWE-843
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ericnorris striptags: < 3.2.0
- striptags (npm): before 3.2.0
- striptags_project striptags: before 3.2.0

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r> (third-party-advisory, web)
- <https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca> (patch, third-party-advisory, web)
- <https://github.com/ericnorris/striptags/releases/tag/v3.2.0> (third-party-advisory, web)
- <https://www.npmjs.com/package/striptags> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32696> (advisory)

## Sources

- CVE List: [CVE-2021-32696](https://www.cve.org/CVERecord?id=CVE-2021-32696), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-qxg5-2qff-p49r](https://github.com/advisories/GHSA-qxg5-2qff-p49r), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32696](https://nvd.nist.gov/vuln/detail/CVE-2021-32696), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32696 · Whole record: https://cve.day/CVE-2021-32696.json · Rebuilt by cve.day 2026-11-25T22:58:02.011Z
