CVE-2021-32696
Last modified
CVE-2021-32696 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Striptags Project | Striptags | < 3.2.0 |
References
- https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2facaPatch, Third Party Advisory
- https://github.com/ericnorris/striptags/releases/tag/v3.2.0Third Party Advisory
- https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49rThird Party Advisory
- https://www.npmjs.com/package/striptagsProduct, Third Party Advisory
- https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2facaPatch, Third Party Advisory
- https://github.com/ericnorris/striptags/releases/tag/v3.2.0Third Party Advisory
- https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49rThird Party Advisory
- https://www.npmjs.com/package/striptagsProduct, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32696?
How severe is CVE-2021-32696?
How do I fix CVE-2021-32696?
Are you affected by CVE-2021-32696?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
