Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit Markdown with bare URL and many ')'
-
DeliveryReach autolink_size trimming under active auto-close
-
ExploitForce O(N²) parenthesis recount per byte
-
ExecutionPin BEAM scheduler for tens of seconds
-
ImpactService denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Specific precondition: MDEx's auto-close completion must be active - either explicitly enabled or implicitly via MDEx.stream/2, which runs the completion over the whole accumulated source for every chunk. The trigger is attacker-controlled Markdown containing a bare URL followed by a large run of closing parentheses, processed by MDEx.FragmentParser.autolink_size/2; no Markdown extension needs to be enabled. Affected versions are mdex from 0.14.2 up to (not including) 0.15.0. LIMITING FACTORS: rendering with auto-close disabled is not affected at all; impact is availability only (no data exposure or code execution); no authentication or privileges are required to submit the content (PR:N), but the attacker must be able to supply Markdown that the application actually renders through a vulnerable code path. |
| Impact | This is a medium-severity, availability-only denial-of-service flaw (CWE-407 algorithmic complexity) with a CVSS 4.0 base of 5.9 (VA:H, no confidentiality or integrity impact). The exploitation-status signals are weak: no EPSS probability was provided, the issue is not in CISA KEV, and the references contain only the fix commits and advisories - no public exploit identified at time of analysis. The vendor-priority Decision label is 'this_month' (not act_now/emergency), consistent with a self-contained DoS rather than a code-execution emergency. The one amplifying factor is that exploitation is trivial to trigger once conditions are met (~20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 re-runs the quadratic completion over the whole accumulated source per chunk, compounding cost). Signal tension to verify: the CNA assigned AV:L, but a Markdown-rendering library's primary job is processing untrusted, often network-delivered content (comments, chat, streamed output), which argues for a network vector - treat deployment context as the deciding factor. The AT:P attack requirement reflects a genuine gatekeeper: auto-close must be active, so default renderers with auto-close disabled are unaffected. Net: a real but bounded priority - patch on a routine cycle, prioritizing any service that renders untrusted Markdown via stream/2 or with auto-close enabled. |
| Exploit ScenarioDerived | An attacker submits Markdown content (e.g., a forum post, chat message, or streamed document) to an Elixir service that renders it via MDEx with auto-close active, embedding a bare URL followed by tens of thousands of closing parentheses. The quadratic trimming in MDEx.FragmentParser.autolink_size/2 forces O(N²) work, pinning a BEAM scheduler for tens of seconds per request and degrading or stalling the service; with MDEx.stream/2 the cost multiplies because each chunk re-processes the full accumulated source. No public exploit code was identified at time of analysis, and no extension needs to be enabled. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Markdown rendering in MDEx 0.14.2 through 0.14.x can be driven into quadratic work by a bare URL followed by a long run of closing parentheses, allowing remote unauthenticated attackers to stall an Elixir scheduler and deny service. The flaw is reachable whenever auto-close completion is active, including implicitly through MDEx.stream/2, which repeats completion over the entire accumulated source for every chunk; roughly 20 KB of crafted input can occupy a scheduler for tens of seconds. No public exploit code was identified at time of analysis, and the vendor released 0.15.0 as the fix.
RemediationAI
Vendor-released patch: upgrade mdex to 0.15.0 or later; the advisory is at https://cna.erlef.org/cves/CVE-2026-135775.html and the upstream fixes are in commits 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af and bea359152bc1f63f3256ee86ca207151b815940d. If upgrading is not immediately possible, disable auto-close completion when rendering untrusted Markdown, since rendering with auto-close disabled is not affected, though this changes output for incomplete Markdown constructs. Avoid MDEx.stream/2 for attacker-controlled content, or otherwise ensure auto-close completion is not invoked per chunk, accepting the loss of incremental rendering behavior. As a compensating control, cap or reject input containing very long trailing parenthesis runs after bare URLs before it reaches the renderer, with the trade-off that legitimate long URLs may be refused.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MDEx is an Elixir Markdown parser whose fragment parser performs auto-close completion for incomplete Markdown constructs. In the vulnerable code path, MDEx.FragmentParser.autolink_size/2 handles a bare URL by trimming trailing closing parentheses one byte at a time and recounting every '(' and ')' in the remaining URL after each removal, producing O(N²) work for a URL followed by N parentheses; no Markdown extension needs to be enabled. The issue is CWE-407 (inefficient algorithmic complexity), and the streaming API MDEx.stream/2 compounds it by running completion over the whole accumulated source for each chunk. The supplied CVSS 4.0 vector scores 5.9 with VA:H and no confidentiality or integrity impact; the independent assessment is CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, reflecting a remote, unauthenticated availability-only attack whose precondition is that auto-close completion is active. The referenced upstream commits also rework related quadratic parsing paths, but the CVE trigger described here is the autolink trailing-parenthesis trimming behavior.
Know when Elixir gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Untrusted Markdown usually arrives over the network (AV:N); auto-close must be active, an attacker-independent condition (AC:H); no privileges or interaction needed; impact is availability-only DoS (A:H, C:N/I:N).
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Unbounded recursion in the Elixir `protobuf` Hex package (versions >= 0.8.0, < 0.16.1) lets unauthenticated remote attac
Remote code execution in the Elixir Flop pagination library affects versions 0.8.0 through 0.26.6, 0.27.0 through 0.27.2
Improper JWT signature verification in Dashbit's nimble_zta (0.1.2 up to but not including 0.1.3) lets an unauthenticate
Session-swapping authentication bypass in the Elixir library AshAuthentication (versions 4.10.0 before 4.15.0 and 5.0.0-
Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauth
Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov
Server-Side Request Forgery protection bypass in the Elixir safeurl library (versions 0.1.0 and later) allows unauthenti
Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when
Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin
Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent
Unauthenticated remote denial of service in the Elixir HTTP server Bandit (mtrudel/bandit) from 0.1.0 before 1.14.0 lets
Unauthenticated remote attackers can consume disproportionate server CPU on Bandit (mtrudel/bandit, Elixir/Erlang) by se
EUVD-2026-139648
GHSA-vvvc-9xfh-72jv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB