CVE-2021-32696 – striptags
Package
Manager: npm
Name: striptags
Vulnerable Version: >=0 <3.2.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00292 pctl0.52124
Details
Passing in a non-string 'html' argument can lead to unsanitized output 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. ### Impact XSS ### Patches `3.2.0` ### Workarounds Ensure that the `html` parameter is a string before calling the function.
Metadata
Created: 2021-06-18T19:31:35Z
Modified: 2021-06-18T19:31:21Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-qxg5-2qff-p49r/GHSA-qxg5-2qff-p49r.json
CWE IDs: ["CWE-241", "CWE-79", "CWE-843"]
Alternative ID: GHSA-qxg5-2qff-p49r
Finding: F008
Auto approve: 1