CVE-2026-105830 is a high-severity denial of service vulnerability in thephpleague commonmark library versions 2.0.0 up to but not including 2.10.2. The flaw exists in the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() method, where an unauthenticated attacker can cause excessive CPU consumption by submitting specially crafted input. This triggers repeated full-buffer scans, leading to quadratic-time resource exhaustion in PHP workers.
A cross-site scripting (XSS) vulnerability exists in League CommonMark versions from 1.3.0 up to but not including 2.10.2. This flaw allows users posting Markdown to bypass the DisallowedRawHtml extension by ending raw HTML with a bare disallowed tag name, enabling injection of script or iframe elements that execute stored scripts in viewers' browsers under default GitHub Flavored Markdown (GFM) settings.
CVE-2024-58382 is a high-severity vulnerability in thephpleague commonmark versions before 2.6.0. It involves inefficient algorithmic complexity in Markdown parsing, allowing attackers to cause denial of service by submitting specially crafted Markdown inputs that trigger worst-case polynomial time performance. This can exhaust CPU resources and PHP-FPM processes when multiple requests are sent in parallel.
CVE-2026-86435 is a denial of service vulnerability in thephpleague commonmark's Footnote extension. Versions from 1.5.0 up to but not including 2.8.4 fail to deduplicate footnote definitions, allowing attackers to craft documents with duplicate footnotes that cause quadratic output expansion. This results in excessive memory and CPU consumption, potentially exhausting server resources.
Thephpleague commonmark versions 2.0.0 up to but not including 2.8.4 contain a denial of service vulnerability due to inefficient algorithmic complexity in the UniqueSlugNormalizer::normalize() function. This vulnerability occurs when certain extensions are registered, allowing an attacker to cause excessive CPU consumption by forcing many headings to collapse to the same base slug. The issue was patched in version 2.9.0.
CVE-2026-86433 is a denial of service vulnerability in thephpleague commonmark's Attributes extension affecting versions from 1.5.0 up to but not including 2.8.4. The vulnerability arises from an inefficient quadratic-time algorithm in AttributesListener::findTargetAndDirection(), which can be exploited by unauthenticated attackers submitting repeated attribute blocks to exhaust server resources and cause parsing delays exceeding 5 seconds.
CVE-2026-86432 is a denial of service vulnerability in thephpleague commonmark's XmlRenderer component. Versions from 2.0.0 up to but not including 2.8.4 are affected. The vulnerability arises because the XmlRenderer emits indentation proportional to the depth of every XML tag, which can be exploited by providing deeply nested Markdown or AST structures. This causes quadratic memory consumption and output amplification, potentially exhausting server resources.
A cross-site scripting (XSS) vulnerability exists in thephpleague/commonmark versions 2.7.0 up to but not including 2.9.1. The flaw occurs in the AttributesExtension where a form feed character prefix in attribute names bypasses filtering, allowing malicious event handlers and javascript: URIs to be injected. This can lead to script execution when untrusted Markdown is rendered with the AttributesExtension enabled. The issue is fixed in version 2.9.1.
CVE-2026-86430 affects thephpleague commonmark versions before 2.9.1 and involves multiple denial of service vulnerabilities. These vulnerabilities arise from inefficient algorithmic complexity in processing fenced code blocks, reference link label lookups, and emphasis delimiter sequences. Attackers can exploit these flaws by submitting specially crafted Markdown input that causes excessive CPU consumption, leading to denial of service conditions.
Thephpleague/commonmark library versions 1.5.0 up to but not including 2.9.1 contain a vulnerability causing quadratic parsing complexity in the SmartPunctExtension and AttributesExtension. These extensions are not enabled by default. An unauthenticated attacker can exploit this by submitting crafted Markdown documents to cause excessive CPU usage and denial of service. The issue is fixed in version 2.9.1.
Thephpleague commonmark versions from 1.5.0 up to but not including 2.10.0 contain a denial of service vulnerability due to inefficient algorithmic complexity in the AttributesExtension. This flaw allows attackers to submit Markdown with many distinct attribute names, causing quadratic-time processing that consumes excessive CPU resources and disrupts legitimate requests.
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 growing portions of a line to translate between character positions and byte positions, and the Autolink extension can also copy and validate the remaining line at every URL-like prefix, allowing an attacker who can submit Markdown for conversion to consume disproportionate CPU time with a comparatively small request. This issue is fixed in 2.9.0.
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 leading C0 control character, in a javascript: URL that browsers discard before parsing the scheme, causing the browser to still execute the script even when the unsafe-link filter is enabled. This issue is fixed in 2.9.0.
The league/commonmark library's XmlRenderer component can cause a denial of service via excessive memory and output size when rendering deeply nested XML. This occurs because indentation whitespace grows quadratically with the depth of the XML tree, which can be triggered by deeply nested Markdown blockquotes or attacker-influenced ASTs. The vulnerability affects all 2.x versions from 2.0.0 up to but not including 2.9.0. There is no impact on confidentiality or integrity, only availability due to resource exhaustion. Mitigations include lowering the parser's max_nesting_level, capping input size, constraining XML consumers, or preferring HTML rendering for untrusted content. A patch is available.
A denial of service vulnerability exists in league/commonmark versions 2.0.0 through 2.8.x due to a quadratic algorithmic complexity in the UniqueSlugNormalizer::normalize() function. This function restarts its search for unique slug suffixes from 1 on every collision, causing O(K²) CPU cost for K colliding slugs. The issue affects processing of headings and footnotes when certain extensions are enabled, allowing an attacker to cause significant CPU consumption and service disruption without authentication. Workarounds include disabling slug uniqueness or affected extensions, but upgrading to a patched release is recommended.
A denial of service vulnerability exists in the Footnote extension of league/commonmark from version 1.5.0 up to but not including 2.9.0. The vulnerability arises because the extension appends the entire list of backreferences for every footnote definition without deduplication, causing quadratic growth in output size, parse time, and memory usage when duplicate footnote definitions are present. An unauthenticated attacker can exploit this by submitting a crafted document that expands a small input (~10 KB) into a very large output (~62 MB) and high memory consumption (~440 MB), potentially causing a PHP worker to be killed due to out-of-memory conditions. This impacts availability only, with no confidentiality or integrity effects. The Footnote extension must be enabled for the vulnerability to be exploitable.
A denial of service vulnerability exists in league/commonmark when the Attributes extension is enabled. The vulnerability arises from a quadratic time complexity in resolving adjacent inline attribute blocks at the start of a block, causing excessive CPU usage. An unauthenticated attacker can exploit this by submitting crafted input that triggers long processing times, impacting availability. This affects all versions from 1.5.0 up to but not including 2.9.0. A patch is available to address this issue.
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.
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 rendered output are not affected. This issue has been patched in version 2.8.1.