GHSA-qxg5-2qff-p49r

    Dashboard / Vulnerabilities / GHSA-qxg5-2qff-p49r

    GHSA-qxg5-2qff-p49r

    Published: 18 Jun 2021Last Modified: 8 Jul 2026

    Summary: Passing in a non-string 'html' argument can lead to unsanitized output

    Details: 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. ### Impact XSS ### Patches `3.2.0` ### Workarounds Ensure that the `html` parameter is a string before calling the function.

    Affected packages

    Package

    Name: striptags

    Purl: pkg:npm/striptags

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.2.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-qxg5-2qff-p49r | CVE-DB