LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32696: Passing in a non-string 'html' argument can lead to unsanitized output

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.

LowCVSS 3.7Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

striptags versions before 3.2.0 can mishandle non-string input. If an application sends attacker-controlled array-like data into the library, unsanitized text may reach a webpage and create XSS risk. The public sources rate this as low severity with high attack complexity, but exposed web inputs still warrant dependency cleanup.

Executive priority

Treat this as a low-severity dependency hygiene issue unless the library processes public web input. Prioritize remediation in internet-facing applications where sanitized output is rendered into pages or templates.

Technical view

CVE-2021-32696 is a type-confusion flaw in ericnorris/striptags <3.2.0. The html parameter can receive an array-like object; internal concatenation may preserve unsanitized strings instead of stripping tags. The advisory maps this to CWE-241 and CWE-79, with CVSS 3.1 score 3.7.

Likely exposure

Most likely in Node.js or TypeScript applications using striptags before 3.2.0 and passing request data, especially query parameters, directly to the html argument. Applications only passing trusted strings are less exposed, based on the advisory's described precondition.

Exploitation context

The provided sources do not show active exploitation, and the CVE is not listed as KEV. Abuse requires attacker control over the input shape reaching striptags, not merely normal string content. Impact is described as potential XSS and limited confidentiality exposure.

Researcher notes

The key condition is type confusion on the html parameter with array-like input. The public bundle identifies the fix release and commit, but does not provide evidence of exploitation in the wild. Validate exposure through call-site review, not package presence alone.

Mitigation direction

  • Upgrade striptags to version 3.2.0 or later.
  • Reject or normalize non-string values before calling striptags.
  • Review routes that pass query parameters directly into striptags.
  • Check upstream advisory and release notes for vendor guidance.

Validation and detection

  • Inspect dependency manifests and lockfiles for striptags versions below 3.2.0.
  • Trace user-controlled request data into striptags html arguments.
  • Add regression tests covering non-string html inputs.
  • Confirm deployed builds include the upgraded dependency version.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-241: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32696 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
3.7 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
3.7CVSS 3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N2.21.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

3.7Low
CVSS 3.1 vector shape for CVE-2021-32696Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ericnorrisstriptags< 3.2.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-241 · source CWE mapping

Improper Handling of Unexpected Data Type

Improper Handling of Unexpected Data Type represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.