Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs
CVE-2026-135775Published 30 Nov 2026, 18:45 UTC
Real-world risk
0.8/ 10Low
Routine
If the vulnerable configuration applies to you: 1.7
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.9
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 Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses. When auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N²) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected. This issue affects mdex: from 0.14.2 before 0.15.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| mdexNiche | >= 0.14.2, < 0.15.0 | 0.15.0 |
What to do
Update to a fixed version: 0.15.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| 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.4 × prerequisites 0.225 × threat 0.850.765
- Rounded to one decimal between 0.1 and 100.8
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 0.8 (cvss fallback)
Weakness
CWE-407
References
- https://cna.erlef.org/cves/CVE-2026-135775.htmlrelated, third-party-advisory
- https://osv.dev/vulnerability/EEF-CVE-2026-135775related
- https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940drelated
- https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9afpatch
- CVE-2026-135775 on CVE.org