GO-2022-0588

    Dashboard / Vulnerabilities / GO-2022-0588

    GO-2022-0588

    Published: 15 Aug 2022Last Modified: 20 May 2024

    Summary: Cross-site scripting via leaked style elements in github.com/microcosm-cc/bluemonday

    Details: The bluemonday HTML sanitizer can leak the contents of a "style" element into HTML output, potentially causing XSS vulnerabilities. The default bluemonday sanitization policies are not vulnerable. Only user-defined policies allowing "select", "style", and "option" elements are affected. Permitting the "style" element in policies is hazardous, because bluemonday does not contain a CSS sanitizer. Newer versions of bluemonday suppress "style" and "script" elements even when allowed by a policy unless the policy explicitly requests unsafe processing.

    Affected packages

    Package

    Name: github.com/microcosm-cc/bluemonday

    Purl: pkg:golang/github.com/microcosm-cc/bluemonday

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.0.16

    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
    GO-2022-0588 | CVE-DB