# CVE-2026-86434: commonmark 2.0.0 through 2.8.3 Denial of Service via Slug Collision

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-08-06T20:41:45.000Z
- Modified: 2026-10-20T12:11:18.651Z
- Also known as: GHSA-mh25-x5hq-wrqp
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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 and denying service.

(As written by CVE List.)

## Affected

- thephpleague commonmark: from 2.0.0 before 2.8.4 (not affected: 2.8.4)
- league/commonmark (Packagist): from 2.0.0 before 2.9.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/thephpleague/commonmark/security/advisories/GHSA-mh25-x5hq-wrqp> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/commonmark-2.0.0-through-2.8.3-denial-of-service-via-slug-collision> (third-party-advisory)
- <https://github.com/thephpleague/commonmark> (package)
- <https://github.com/thephpleague/commonmark/releases/tag/2.9.0> (web)

## Sources

- CVE List: [CVE-2026-86434](https://www.cve.org/CVERecord?id=CVE-2026-86434), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-mh25-x5hq-wrqp](https://github.com/advisories/GHSA-mh25-x5hq-wrqp), CC-BY-4.0, modified 2026-10-20
- NVD: [CVE-2026-86434](https://nvd.nist.gov/vuln/detail/CVE-2026-86434), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-86434 · Whole record: https://cve.day/CVE-2026-86434.json · Rebuilt by cve.day 2026-11-25T22:59:36.531Z
