GHSA-7f42-p84j-f58p

    Dashboard / Vulnerabilities / GHSA-7f42-p84j-f58p

    GHSA-7f42-p84j-f58p

    Published: 21 Mar 2018Last Modified: 16 Feb 2024
    Aliases:

    Summary: Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

    Details: When Sanitize <= 4.6.2 is used in combination with libxml2 >= 2.9.2, a specially crafted HTML fragment can cause libxml2 to generate improperly escaped output, allowing non-whitelisted attributes to be used on whitelisted elements. This can allow HTML and JavaScript injection, which could result in XSS if Sanitize's output is served to browsers.

    Affected packages

    Package

    Name: sanitize

    Purl: pkg:gem/sanitize

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 3.0.0
    Fixed -4.6.3

    Affected versions

    3.0.0
    3.0.1
    3.0.2
    3.0.3
    3.0.4

    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