CVE-2021-32696CWE-241CWE-79

Passing in a non-string 'html' argument can lead to unsanitized output

Low · published June 18, 2021

CVSS v3.1
3.7
EPSS
1%
Percentile
64.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.7 · LOW
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.01079 · 64.8th percentile
Weaknesses
CWE-241 · Improper Handling of Unexpected Data Type; CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2021-06-18T19:35Z
EPSS history
Timeline
  • 18 JUN 19:35Z
    Passing in a non-string 'html' argument can lead to unsanitized output
    cvelistv5