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)
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.
EPSS exploit prediction
EPSS: 0.011 (63.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 64th percentile — 63.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
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)
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.