Skip to content
OpenAdvisories

Package · Packagist

league/commonmark

18 known vulnerabilities.

10 results · Clear filters · Feed

  • High 7.5

    league/commonmark 2.0.0 before 2.10.2 Quadratic DoS via TableStartParser

    league/commonmark from 2.0.0 before 2.10.2 contains a quadratic-time denial of service vulnerability in the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() block-start scan. Unauthenticated attackers can submit a large paragraph of pip…

  • High 7.5

    league/commonmark before 2.6.0 Denial of Service via Quadratic Complexity

    league/commonmark versions before 2.6.0 contain polynomial time complexity vulnerabilities in Markdown parsing that allow attackers to cause denial of service. Attackers can submit carefully crafted Markdown inputs designed to trigger worst-case performance, …

  • High 7.5

    commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision

    league/commonmark versions >= 2.0.0 and < 2.8.4 (patched in 2.9.0) contain a denial of service vulnerability in UniqueSlugNormalizer::normalize(), which restarts its numeric-suffix search from 1 on every slug collision, resulting in O(K^2) time complexity for…

  • High 7.2

    commonmark before 2.9.1 XSS via AttributesExtension form feed bypass

    league/commonmark (thephpleague/commonmark) versions >= 2.7.0 and < 2.9.1 contain a cross-site scripting vulnerability in the AttributesExtension. Prefixing an attribute name with a single U+000C form feed byte (e.g. {\x0Conclick="alert(1)"}) bypasses the Att…

  • High 7.5

    league/commonmark before 2.9.1 Denial of Service via parsing

    league/commonmark versions before 2.9.1 contain multiple denial of service vulnerabilities in fenced code block detection, reference link label lookup, and emphasis delimiter processing that perform super-linear work on crafted input. Attackers can submit spe…

  • High 7.5

    commonmark before 2.9.1 Denial of Service via SmartPunct and Attributes

    The league/commonmark (thephpleague/commonmark) library in versions >= 1.5.0 and < 2.9.1 contains quadratic parsing complexity in its SmartPunctExtension and AttributesExtension. When either extension is explicitly registered on the Environment (they are not …

  • High 7.5

    commonmark 1.5.0 before 2.10.0 Denial of Service via Attributes

    commonmark versions from 1.5.0 before 2.10.0 contain a denial of service vulnerability in the AttributesExtension when processing distinctly-named attributes. Attackers can submit Markdown with numerous distinct attribute names to cause quadratic-time attribu…

  • High 7.5

    league/commonmark: Denial of service via duplicate footnote definitions

    ### Impact The Footnote extension records one backref per footnote *reference* and then appends the **entire** backref list for **every** footnote *definition* block in the document, without ever de-duplicating or removing repeated definitions of the same lab…

  • High 7.5

    league/commonmark: Denial of service via adjacent inline attribute blocks

    ### Impact With the Attributes extension enabled, `AttributesListener::findTargetAndDirection()` resolves each attribute node's target by walking outward through its siblings. For a run of N adjacent inline attribute blocks placed at the start of a block (wit…

  • High 7.5

    league/commonmark: Quadratic-time denial of service when parsing crafted Markdown

    league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 0.6.0 until 2.9.0, specially crafted Markdown lines can cause the parser to have quadratic time complexity when converting, because several parsing paths repeatedly rescan …