Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Markdown as user content or streamed LLM output
-
ExploitReach MDEx.FragmentParser.text_label under non-default auto_close label policy
-
ExecutionTrigger quadratic backtracking on unterminated label or trailing tilde run
-
ImpactExhaust CPU for tens of seconds and degrade or deny service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to use MDEx (0.14.3 through 0.14.x) to complete partial Markdown with the NON-DEFAULT policy auto_close: [links: :text] or auto_close: [images: :text]; the default auto_close: true policy is NOT affected, so this is the primary limiting factor. The attacker must be able to supply the Markdown - e.g. user content or streamed LLM output - containing an unterminated link or image label line, or a trailing run of three or more tildes, so that MDEx.FragmentParser.text_label/1 applies the one-end-anchored regexes \A[^\n]+|[^\n]+\z and ~{3,}\z. Impact is bounded to CPU exhaustion (no data compromise); the advisory cites about tens of seconds of CPU for a single ~60 KB render. No authentication or user interaction is needed beyond delivering the content (PR:N/UI:N). |
| Impact | This is a low-severity, availability-only Denial of Service (ReDoS / CWE-1333) issue, and the signals agree it is not an urgent priority. The vuln.today decision label is 'monitor', there is no CISA KEV listing, no EPSS score is supplied, and no exploit code is referenced (only the fix commits and advisories). The vendor CVSS 4.0 vector scores it 2.1 with only Vulnerable Availability impact (VA:L) and no confidentiality or integrity impact. The most important limiting signal is AT:P plus the description: the flaw is reachable ONLY under the NON-DEFAULT auto_close: [links: :text] or auto_close: [images: :text] policy, and the default auto_close: true policy is not affected - so most deployments are not exposed. One discrepancy worth verifying: the supplied CVSS 4.0 vector uses AV:L (local), but the description states the attacker-supplied Markdown is typically remote data such as user content or streamed LLM output, which argues the data path is network-reachable (AV:N) even though the triggering configuration is a local operator choice. Net: a real but low-impact, config-gated CPU-exhaustion bug, not a high-urgency item. |
| Exploit ScenarioDerived | An Elixir application uses MDEx to complete partial Markdown with the non-default auto_close: [links: :text] (or images) policy - for example to render streamed LLM output or user-submitted content. An attacker supplies roughly 60 KB of Markdown containing an unterminated link/image label line or a long trailing tilde run, and the one-end-anchored regexes retry from every offset, making a single render consume tens of seconds of CPU and tying up the worker. No public exploit code is identified; the advisory describes the trigger and cost precisely. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
CPU exhaustion in the Elixir MDEx Markdown library (mdex 0.14.3 through 0.14.x) lets unauthenticated attackers burn server CPU by supplying crafted Markdown containing an unterminated link or image label, or a long trailing run of tildes. The flaw only triggers when the host application completes partial Markdown with the non-default auto_close: [links: :text] or auto_close: [images: :text] policy; the default auto_close: true policy is not affected, which sharply limits real-world exposure. Impact is availability-only: the advisory describes a single render of roughly 60 KB taking tens of seconds of CPU, and no public exploit code was identified at time of analysis; the available priority signal rates this as monitor-level, so patching belongs in a routine maintenance cycle rather than an emergency response.
RemediationAI
Vendor-released patch: upgrade mdex to 0.15.0, the first version outside the affected range (0.14.3 to before 0.15.0); the upstream fixes are visible in commits 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af and 359d46b344042a2feda7c768051d39b9d460b210, with advisory details at https://cna.erlef.org/cves/CVE-2026-135699.html and https://osv.dev/vulnerability/EEF-CVE-2026-135699. If upgrading cannot be done immediately, the highest-value mitigation is to stop using the auto_close: [links: :text] and auto_close: [images: :text] policies and run the default auto_close: true policy instead - this removes the vulnerable code path entirely, at the cost of changing how partially typed links and images are auto-completed in the UI. As a secondary control, cap the size and maximum line length of Markdown accepted from untrusted sources (user content, streamed LLM output) before it reaches MDEx and enforce that limit with a timeout around rendering; the trade-off is that legitimate long lines or large documents may be rejected or truncated, and an external render timeout is only a safety net, not a fix. Because this is a monitor-priority, availability-only issue with no public exploit identified at time of analysis, remediation can be scheduled in a normal maintenance window rather than an emergency change.
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 parses and completes partial Markdown so an application can render streamed or incremental content (for example LLM output or user drafts). In MDEx.FragmentParser.text_label/1, the pending link or image label is escaped using two one-end-anchored regular expressions, \A[^\n]+|[^\n]+\z and ~{3,}\z. Because only one end is anchored, the regex engine retries the unanchored alternative from every offset in the subject string, so processing cost grows with the square of the label line length or of the trailing tilde run - the classic CWE-1333 inefficient regular expression complexity (ReDoS) pattern in a PCRE-style engine. The upstream fix removes the regexes in favour of bounded binary scanning (:binary.match, binary_part, last_line/1 and trailing_byte_run/2), alongside related refactors to the HTML tag stack, quote-prefix expansion and link/image opener bookkeeping in open_link/5 and continue_after_link/2. Note that the CNA's CVSS 4.0 vector (AV:L, AT:P) reflects a local/deployment-dependent view, whereas the assessed vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L treats the attacker as remote with high attack complexity because the vulnerable non-default auto_close policy must be in use; confidentiality and integrity are unaffected. The standalone-library data does not list CPE identifiers, so affected deployments must be identified by Elixir dependency version (mdex in mix.lock) rather than by CPE matching.
Know when the next one hits your stack
- 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:L/SC:N/SI:N/SA:N
Malicious Markdown is typically network-delivered (AV:N), but reachability requires the non-default auto_close label policy (AC:H); impact is CPU exhaustion only, so C:N/I:N and A:L.
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
1DescriptionCVE.org
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.
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.
EUVD-2026-139644
GHSA-jvxq-w9gj-vr7j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB