XSS in Ericnorris Striptags
CVE-2021-32696
- CVSS v3
- 3.7 Low
- Public exploits
- None known
- EPSS
- 0.011 · 65.7th percentile
- Published
- 2021-06-18
What to do
- Fixed in
3.2.0- Affected
- 2 affected products
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)
Published · last modified .
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.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.011, 65.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ericnorris Striptags — versions < 3.2.0
- Striptags Project
Weakness classification (CWE)
References
- github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r (Third Party Advisory)
- github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca (Patch, Third Party Advisory)
- github.com/ericnorris/striptags/releases/tag/v3.2.0 (Third Party Advisory)
- www.npmjs.com/package/striptags (Product, Third Party Advisory)