Lucene search

K
cveGitHub_MCVE-2021-32696
HistoryJun 18, 2021 - 8:15 p.m.

CVE-2021-32696

2021-06-1820:15:07
CWE-843
CWE-241
CWE-79
GitHub_M
web.nvd.nist.gov
189
cve
2021
32696
npm
striptags
type-confusion
vulnerability
xss
typescript
security
nvd

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

AI Score

5.1

Confidence

High

EPSS

0.001

Percentile

48.3%

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.

Affected configurations

Nvd
Vulners
Node
striptags_projectstriptagsRange<3.2.0node.js
VendorProductVersionCPE
striptags_projectstriptags*cpe:2.3:a:striptags_project:striptags:*:*:*:*:*:node.js:*:*

CNA Affected

[
  {
    "product": "striptags",
    "vendor": "ericnorris",
    "versions": [
      {
        "status": "affected",
        "version": "< 3.2.0"
      }
    ]
  }
]

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

AI Score

5.1

Confidence

High

EPSS

0.001

Percentile

48.3%