CVE-2021-32696
CVSS V2 Medium 5
CVSS V3 Medium 5.3
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.
Overview
- CVE ID
- CVE-2021-32696
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-06-18T20:15:07
- Last Modified Date
- 2021-06-24T19:20:20
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:striptags_project:striptags:*:*:*:*:*:node.js:*:* | 1 | OR | 3.2.0 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- NONE
- Base Score
- 5.3
- Base Severity
- MEDIUM
- Exploitability Score
- 3.9
- Impact Score
- 1.4
References
Reference URL | Reference Tags |
---|---|
https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca | Patch Third Party Advisory |
https://www.npmjs.com/package/striptags | Product Third Party Advisory |
https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r | Third Party Advisory |
https://github.com/ericnorris/striptags/releases/tag/v3.2.0 | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-32696 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32696 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:09:56 | Added to TrackCVE | |||
2022-12-05 04:38:35 | 2021-06-18T20:15Z | 2021-06-18T20:15:07 | CVE Published Date | updated |
2022-12-05 04:38:35 | 2021-06-24T19:20:20 | CVE Modified Date | updated | |
2022-12-05 04:38:35 | Analyzed | Vulnerability Status | updated |