CVE-2021-32696
Summary
| CVE | CVE-2021-32696 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-06-18 20:15:00 UTC |
| Updated | 2021-06-24 19:20:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| striptags - npm |
MISC |
www.npmjs.com |
|
| Release v3.2.0 · ericnorris/striptags · GitHub |
MISC |
github.com |
|
| Merge pull request from GHSA-qxg5-2qff-p49r · ericnorris/striptags@f252a6b · GitHub |
MISC |
github.com |
|
| Passing in a non-string 'html' argument can lead to unsanitized output · Advisory · ericnorris/striptags · GitHub |
CONFIRM |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 982052 Nodejs (npm) Security Update for striptags (GHSA-qxg5-2qff-p49r)