Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of service
CVE-2026-135699Published 30 Nov 2026, 18:44 UTC
Real-world risk
0.6/ 10Low
Routine
If the vulnerable configuration applies to you: 1.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| mdexNiche | >= 0.14.3, < 0.15.0 | 0.15.0 |
What to do
Update to a fixed version: 0.15.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 26), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.225 × threat 0.850.574
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-1333
References
- https://cna.erlef.org/cves/CVE-2026-135699.htmlrelated, third-party-advisory
- https://osv.dev/vulnerability/EEF-CVE-2026-135699related
- https://github.com/leandrocp/mdex/commit/359d46b344042a2feda7c768051d39b9d460b210related
- https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9afpatch
- CVE-2026-135699 on CVE.org