p PatchFirst

PatchFirst · Latest vulnerabilities

php-league-commonmark vulnerabilities

Vulnerabilities published for php-league-commonmark in the last 30 days: 2. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 12

  1. CVE-2026-105830

    High · CVSS 8.7EPSS 0.37%No fix published

    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 pipe-free lines not starting with letters, forcing repeated full-buffer strpos scans that exhaust PHP worker CPU.

    Published Updated
  2. CVE-2026-105829

    Medium · CVSS 5.3EPSS 0.25%No fix published

    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 <iframe line followed by a block supplying attributes like src or onload, executing stored scripts in viewers' browsers under default GFM settings.

    Published Updated
  3. CVE-2026-86435

    High · CVSS 8.7EPSS 0.49%No fix published

    commonmark 1.5.0 before 2.8.4 Denial of Service via Footnote

    commonmark versions from 1.5.0 before 2.8.4 contain a denial of service vulnerability in the Footnote extension that fails to deduplicate footnote definitions. Attackers can craft documents with duplicate footnote definitions and references to create quadratic output expansion, consuming excessive memory and CPU to exhaust server resources.

    Published Updated
  4. CVE-2026-86434

    High · CVSS 8.7EPSS 0.51%No fix published

    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 K headings that collapse to the same base slug. The vulnerable path is reached when HeadingPermalinkExtension, FootnoteExtension, or TableOfContentsExtension is registered. An unauthenticated attacker can force many headings onto a single base slug (e.g., via empty ATX headings, identical heading text, or punctuation-only headings) in a small Markdown document, consuming excessive CPU an

    Published Updated
  5. CVE-2026-86433

    High · CVSS 8.7EPSS 0.51%No fix published

    commonmark 1.5.0 before 2.8.4 Denial of Service via Attributes

    commonmark versions from 1.5.0 before 2.8.4 contain a denial of service vulnerability in the Attributes extension where AttributesListener::findTargetAndDirection() performs quadratic-time sibling list scanning. Unauthenticated attackers can submit approximately 32 KB of repeated attribute blocks to cause parsing to take over 5 seconds, exhausting server resources.

    Published Updated
  6. CVE-2026-86432

    Medium · CVSS 6.9EPSS 0.42%No fix published

    commonmark 2.0.0 before 2.8.4 Denial of Service via XML

    commonmark versions from 2.0.0 before 2.8.4 contain a denial of service vulnerability in XmlRenderer that emits depth-proportional indentation for every XML tag. Attackers can provide deeply nested Markdown or AST structures to cause quadratic memory consumption and output amplification, exhausting server resources.

    Published Updated
  7. CVE-2026-86431

    Medium · CVSS 6.9EPSS 0.39%No fix published

    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 AttributesHelper::filterAttributes() 'on*' event-handler filter because PHP's trim() does not strip U+000C, causing the attribute to be written verbatim into the output where browsers parse it as a genuine event handler. The same prefix also defeats the allow_unsafe_links check, allowing javascript: URIs through href/src attributes even when allow_unsafe_links is false. Exploitation requires

    Published Updated
  8. CVE-2026-86430

    High · CVSS 8.7EPSS 0.49%No fix published

    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 specially crafted Markdown with long backtick runs, nested brackets, or delimiter sequences to consume disproportionate CPU time and prevent legitimate requests from completing.

    Published Updated
  9. CVE-2026-86429

    High · CVSS 8.7EPSS 0.52%No fix published

    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 enabled by default and are excluded from the standard CommonMark and GitHub-Flavored Markdown converters), an unauthenticated attacker can submit small, specially crafted Markdown documents — such as text alternating with unpaired quotes, contiguous runs of block-level attribute blocks, or repeated class attributes — to trigger disproportionate CPU consumption and cause a denial of servic

    Published Updated
  10. CVE-2026-86428

    High · CVSS 8.7EPSS 0.49%No fix published

    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 attribute merging and filtering, consuming disproportionate CPU resources and preventing legitimate requests from completing.

    Published Updated
  11. CVE-2026-33347

    Medium · CVSS 6.3EPSS 0.25%No fix published

    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 attacker-controlled domain like youtube.com.evil passes the allowlist check when youtube.com is an allowed domain. This issue has been patched in version 2.8.2.

    Published Updated
  12. CVE-2026-30838

    Medium · CVSS 5.1EPSS 0.23%No fix published

    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> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rende

    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →