Skip to content
OpenAdvisories

Package · Packagist

league/commonmark

18 known vulnerabilities.

8 results · Clear filters · Feed

  • Medium 6.1

    League CommonMark 1.3.0 before 2.10.2 Stored XSS via DisallowedRawHtml Bypass

    League CommonMark from 1.3.0 before 2.10.2 contains a cross-site scripting vulnerability that allows users posting Markdown to bypass the DisallowedRawHtml extension by ending raw HTML with a bare disallowed tag name. Attackers can place a lone <script or <if…

  • Medium 5.3

    league/commonmark: Denial of service via deeply nested XML output

    ### Impact `XmlRenderer` pretty-prints XML by emitting depth-proportional indentation whitespace for **every** opening and closing tag. For a tree of depth n, the indentation alone sums to **O(n²)** bytes of output (and corresponding memory), reachable throug…

  • Medium 6.1

    league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytes

    league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 1.5.0 until 2.9.0, the AttributesExtension's href and src unsafe-link filter can be bypassed by embedding control bytes, such as a tab, carriage return, line feed, or leadi…

  • Medium 6.3

    league/commonmark has an embed extension allowed_domains bypass

    league/commonmark is a PHP Markdown parser. From version 2.3.0 to before version 2.8.2, the DomainFilteringAdapter in the Embed extension is vulnerable to an allowlist bypass due to a missing hostname boundary assertion in the domain-matching regex. An attack…

  • Medium 5.1

    league/commonmark: DisallowedRawHtml extension bypass via whitespace in HTML tag names

    league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> …

  • Medium 6.4

    league/commonmark Cross-site Scripting vulnerability in Attributes extension

    league/commonmark is a PHP Markdown parser. A cross-site scripting (XSS) vulnerability in the Attributes extension of the league/commonmark library (versions 1.5.0 through 2.6.x) allows remote attackers to insert malicious JavaScript calls into HTML. The leag…

  • Medium 6.1

    Moderate severity vulnerability that affects league/commonmark

    Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to insert unsafe links into HTML by using double-encoded HTML entities that are not properly escaped during rendering, a different vulnerabilit…

  • Medium 6.1

    PHP League CommonMark vulnerable to Cross-Site Scripting (XSS)

    Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18.1 allows remote attackers to insert unsafe URLs into HTML (even if allow_unsafe_links is false) via a newline character (e.g., writing jav…