GHSA-vfvf-mqq8-rwqc

    Dashboard / Vulnerabilities / GHSA-vfvf-mqq8-rwqc

    GHSA-vfvf-mqq8-rwqc

    Published: 18 Feb 2019Last Modified: 8 Nov 2023

    Summary: Sanitization bypass using HTML Entities in marked

    Details: Affected versions of `marked` are susceptible to a cross-site scripting vulnerability in link components when `sanitize:true` is configured. ## Proof of Concept This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted. For example: A link URI such as ``` javascript&#x58document;alert(1) ``` Renders a valid link that when clicked will execute `alert(1)`. ## Recommendation Update to version 0.3.6 or later.

    Affected packages

    Package

    Name: marked

    Purl: pkg:npm/marked

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.3.6

    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