phpatch.com

← phpatch.com home

league/commonmark: Quadratic-time denial of service in the GitHub Flavored Markdown Table extension block-start scan

High · CVSS 7.5 · fetched 2026-10-22

## Summary `league/commonmark`'s GitHub Flavored Markdown Table extension registers `TableStartParser` as a block-start parser. While a paragraph is the active block, the core block parser calls `TableStartParser::tryStart()` on every non-blank line. Its first action fetches the entire growing paragraph buffer via `getParagraphContent()` and runs `strpos($paragraph, '|')` across all of it. For a paragraph of M pipe-free lines, line k rescans about k lines of buffer, so total work is 1+2+...+M, which is O(M^2).

Our analysis

Who is affected

This advisory is PHP-relevant but does not enumerate interpreter branches: it concerns a PHP application or component — the product named in the summary above. The affected versions and the fixed release to move to are stated in the remediation and the source advisory.

Exploitation status

Not KEV-listed in this record. In the source data for this record (retrieved 2026-10-22), the vulnerability was not listed in the CISA Known Exploited Vulnerabilities catalog. Read that narrowly: it means no catalogued exploitation at retrieval time, not that exploitation is impossible or unreported elsewhere.

Patch priority

Patch within days — this week, not this quarter. The drivers for this record: the source rates it High; CVSS 7.5; it affects a PHP application component rather than the interpreter. If the affected system is internet-facing, treat it as immediate; the 24–72 hour handling above applies.

How this verdict is derived: from the fields on this page — the source advisory's severity and CVSS score, CISA KEV listing status and the affected-branch data — as retrieved 2026-10-22. It is a triage aid, not a substitute for the source advisory.

Remediation

Upgrade league/commonmark to 2.10.2 or later.

Affected PHP branches

See the source advisory.

Check your site

Source: GitHub Global Security Advisories (Composer ecosystem) · retrieved 2026-10-22T10:19:14-04:00 · https://github.com/advisories/GHSA-3q6v-r5mr-hxv8

← All threats