XSS in Ericnorris Striptags

CVE-2021-32696

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.011 (61.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 3.7 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-32696?
CVE-2021-32696 is a low-severity vulnerability in Ericnorris Striptags, classified under Cross-site Scripting. CVSS score: 3.7/10. Published 2021-06-18.
How severe is CVE-2021-32696?
Low severity. CVSS v3 base score is 3.7 out of 10.