Security mailing lists by PureSourceCode

CVE-2021-32696

MEDIUM 5.3CVSS 3.1

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.

Published
18 Jun 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-241CWE-79CWE-843
Also known as
GHSA-qxg5-2qff-p49r
Sources
NVDJSONOSV GHSA-qxg5-2qff-p49rJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD striptags_project striptags
cpe:2.3:a:striptags_project:striptags:*:*:*:*:*:node.js:*:*
< 3.2.0 3.2.0
OSV npm striptags < 3.2.0 3.2.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 18 Jun 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.