Quadratic CPU use in mdex auto-close trimming of parentheses after bare URLs
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.
Summary
Inefficient algorithmic complexity in leandrocp mdex from 0.14.2 before 0.15.0 lets an attacker who controls rendered Markdown exhaust CPU through a bare URL followed by many closing parentheses. When auto-close is active, the trailing parentheses are trimmed one byte at a time with a full recount at each step, so the work grows quadratically (CWE-407). A local attacker with no privileges can cause a denial of service, and around 20 KB of input can pin a scheduler for tens of seconds. Rendering with auto-close disabled is not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade mdex to version 0.15.0, which is the fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA mdex (leandrocp) Fixed in 0.15.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
leandrocp mdex 0.15.0
10 records Highest priority Priority MEDIUM 2 MEDIUM, 8 LOW
Other records, highest priority first
- TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotesPriority MEDIUM 46
- TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustionPriority MEDIUM 46
- TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
- Release ·
leandrocp mdex 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
5 records Highest priority Priority MEDIUM 1 MEDIUM, 4 LOW
Other records, highest priority first
- TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustionPriority MEDIUM 46
- TI-2026-101155 Quadratic CPU consumption in mdex auto-close block quote handlingPriority LOW 26
- TI-2026-101150 Quadratic regular expression scans in MDEx allow CPU denial of servicePriority LOW 8
Timeline
- 2026-11-30 Threatist record created from CVE-2026-135775
- 2026-11-30 CISA SSVC decision points changed
- 2026-11-30 Alias added: GHSA-vvvc-9xfh-72jv
References
More leandrocp vulnerabilities
- TI-2026-39661 Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex CVSS 4.0MEDIUM 6.9
- TI-2026-38511 Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service CVSS 4.0MEDIUM 6.9
- TI-2026-39662 Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS) CVSS 4.0MEDIUM 5.1
- TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes CVSS 4.0MEDIUM 6.9
- TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion CVSS 4.0MEDIUM 6.9
- TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and links CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-135775 · CVE Program
- CVE-2026-135775 · NVD
- GHSA-vvvc-9xfh-72jv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences