Skip to main content

MDEx CVE-2026-135699

| EUVDEUVD-2026-139644 LOW
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-jvxq-w9gj-vr7j
2.1
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted Markdown as user content or streamed LLM output
  2. Exploit
    Reach MDEx.FragmentParser.text_label under non-default auto_close label policy
  3. Execution
    Trigger quadratic backtracking on unterminated label or trailing tilde run
  4. Impact
    Exhaust 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mdex 359d46b344042a2feda7c768051d39b9d460b210 <2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
mdex 0.14.3 <0.15.0

Affected Packages

euvd mdex fix: 0.15.0

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

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 2.1 LOW
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 30, 2026 - 20:05 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
Elixir-only Markdown library; small ecosystem, only a non-default feature is affected
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy