CVE-2026-135699
published low CVSS 4.0 · 2.1Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| leandrocp | — | mdex0.14.3 to < 0.15.0 · Other versions: unaffected | Affected | Not stated | EEF |
| leandrocp | — | leandrocp/mdexmdex · 359d46b344042a2feda7c768051d39b9d460b210 to < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af · Other versions: unaffected | Affected | Not stated | EEF |
Description
Inefficient Regular Expression Complexity vulnerability in leandrocp mdex allows an attacker to exhaust CPU via crafted unterminated link or image labels. When an application completes partial Markdown with the non-default auto_close: [links: :text] or auto_close: [images: :text] policy, MDEx.FragmentParser.text_label/1 in lib/mdex/fragment_parser.ex escapes the pending label with two regular expressions, \A[^\n]+|[^\n]+\z and ~{3,}\z, that are anchored at one end only. The engine retries the unanchored alternative from every offset, so the cost grows with the square of a label line or trailing tilde run. An attacker who supplies the Markdown, such as user content or streamed LLM output, can make a single render of about 60 KB take tens of seconds of CPU. The default auto_close: true policy is not affected. This issue affects mdex: from 0.14.3 before 0.15.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| leandrocp | mdex | 0.14.3 to < 0.15.0 (affected · semver)Default: unaffected | EEF · cna |
| leandrocp | mdex | 359d46b344042a2feda7c768051d39b9d460b210 to < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
4- EEF CNA record for CVE-2026-135699 https://cna.erlef.org/cves/CVE-2026-135699.html
- Fix commit 2c29b28 in leandrocp/mdex https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
- Introducing commit 359d46b in leandrocp/mdex https://github.com/leandrocp/mdex/commit/359d46b344042a2feda7c768051d39b9d460b210
- OSV record EEF-CVE-2026-135699 https://osv.dev/vulnerability/EEF-CVE-2026-135699
Provider assertions
2EEF · cna
Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6551c39df8192770020b1914128136e6c010cf6a365f46f1dedc6c31b03ed347
- Ingested
- 30 Nov 2026, 19:09:38 UTC
- Source record
- Official CVE record