Skip to main content

MDEx EUVDEUVD-2026-139648

| CVE-2026-135775 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-vvvc-9xfh-72jv
5.9
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 Markdown with bare URL and many ')'
  2. Delivery
    Reach autolink_size trimming under active auto-close
  3. Exploit
    Force O(N²) parenthesis recount per byte
  4. Execution
    Pin BEAM scheduler for tens of seconds
  5. Impact
    Service 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

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

mdex bea359152bc1f63f3256ee86ca207151b815940d <2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
mdex 0.14.2 <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 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

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

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

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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
High
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 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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche Elixir/BEAM Markdown library, limited production footprint
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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.

More in Elixir

View all
CVE-2026-54451 HIGH POC
8.2 Jul 15

Unbounded recursion in the Elixir `protobuf` Hex package (versions >= 0.8.0, < 0.16.1) lets unauthenticated remote attac

CVE-2026-130411 CRITICAL
9.2 Nov 24

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

CVE-2026-91187 CRITICAL
9.3 Sep 24

Improper JWT signature verification in Dashbit's nimble_zta (0.1.2 up to but not including 0.1.3) lets an unauthenticate

CVE-2026-76949 CRITICAL
9.1 Sep 17

Session-swapping authentication bypass in the Elixir library AshAuthentication (versions 4.10.0 before 4.15.0 and 5.0.0-

CVE-2026-88952 CRITICAL
9.1 Sep 17

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

CVE-2026-91039 CRITICAL
9.1 Sep 17

Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov

CVE-2026-77866 CRITICAL
9.0 Sep 15

Server-Side Request Forgery protection bypass in the Elixir safeurl library (versions 0.1.0 and later) allows unauthenti

CVE-2026-133555 HIGH
8.9 Nov 24

Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when

CVE-2026-108529 HIGH
8.7 Oct 26

Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin

CVE-2026-110499 HIGH
8.7 Oct 26

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

CVE-2026-111101 HIGH
8.7 Oct 26

Unauthenticated remote denial of service in the Elixir HTTP server Bandit (mtrudel/bandit) from 0.1.0 before 1.14.0 lets

CVE-2026-113436 HIGH
8.7 Oct 26

Unauthenticated remote attackers can consume disproportionate server CPU on Bandit (mtrudel/bandit, Elixir/Erlang) by se

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