GHSA-62m3-fc7f-jpp8

    Dashboard / Vulnerabilities / GHSA-62m3-fc7f-jpp8

    GHSA-62m3-fc7f-jpp8

    Published: 26 Mar 2022Last Modified: 16 Feb 2024

    Summary: Parsedown Class-Name Injection

    Details: Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary JavaScript code if a script (already running on the affected page) executes the contents of any element with a specific class. This occurs because spaces are permitted in code block infostrings, which interferes with the intended behavior of a single class name beginning with the language- substring.

    Affected packages

    Package

    Name: erusev/parsedown

    Purl: pkg:composer/erusev/parsedown

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.7.2

    Affected versions

    0.1.0
    0.1.1
    0.1.2
    0.1.3
    0.1.4
    0.1.5

    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