CVE-2026-135775
published medium CVSS 4.0 · 5.9Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| leandrocp | — | mdex0.14.2 to < 0.15.0 · Other versions: unaffected | Affected | Not stated | EEF |
| leandrocp | — | leandrocp/mdexmdex · bea359152bc1f63f3256ee86ca207151b815940d to < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af · Other versions: unaffected | Affected | Not stated | EEF |
Description
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.
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
- 5.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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.2 to < 0.15.0 (affected · semver)Default: unaffected | EEF · cna |
| leandrocp | mdex | bea359152bc1f63f3256ee86ca207151b815940d to < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-407 CWE-407 Inefficient Algorithmic Complexity
References
4- EEF CNA record for CVE-2026-135775 https://cna.erlef.org/cves/CVE-2026-135775.html
- Fix commit 2c29b28 in leandrocp/mdex https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
- Introducing commit bea3591 in leandrocp/mdex https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d
- OSV record EEF-CVE-2026-135775 https://osv.dev/vulnerability/EEF-CVE-2026-135775
Provider assertions
2EEF · cna
Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 008b2e72731d914421096b9862533c47486a8d6d72adef60887d91af226cf1a4
- Ingested
- 30 Nov 2026, 19:09:38 UTC
- Source record
- Official CVE record