Skip to main content

mdex CVE-2026-129522

| EUVDEUVD-2026-139649 LOW
Inefficient Algorithmic Complexity (CWE-407)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-2v8x-fgp5-9m6j
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 to streaming/preview endpoint
  2. Exploit
    Trigger unbounded repeated link-tail rescans in close_bracket/5
  3. Impact
    Exhaust BEAM scheduler CPU for denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The affected application must render untrusted Markdown through MDEx.stream/2 or with the auto_close option enabled (e.g., live previews or streamed LLM output); default one-shot MDEx rendering does not reach the vulnerable auto-close path. Exploitation further requires the attacker to control the Markdown content and to supply a substantial crafted payload - the advisory cites roughly 100 KB of repeated '[](x (', '[](x(', or '![' openers to block a scheduler for over ten seconds. Limiting factors: the non-default streaming/auto_close mode is mandatory, impact is availability-only (no data exposure or integrity loss), and only versions 0.14.2 up to (not including) 0.15.0 are affected.

Impact

This is a genuine but low-priority denial-of-service issue, and the signals agree on that. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N, impact VA:L only) yields 2.1, and the vuln.today decision label is 'monitor' - both point to low urgency. There is no CISA KEV listing, no EPSS score supplied, and no public PoC or exploit reference in the input (the only code references are the vendor fix commits), so no exploitation-probability signal elevates this above its intrinsic severity. The one point worth flagging is attack vector: the vendor chose AV:L, yet the described scenarios (live Markdown previews, streamed LLM output) typically deliver attacker-controlled content over the network, which would argue for AV:N - verify how the affected application receives Markdown before trusting the local-only framing. The AT:P (attack requirements) metric correctly captures the real limiter: only applications using MDEx.stream/2 or the auto_close option reach the vulnerable code path, so default rendering is unaffected. Net: a real algorithmic-complexity bug, but low real-world risk and no evidence of active exploitation.

Exploit ScenarioDerived

An application exposes a live Markdown preview or renders streamed LLM output through MDEx.stream/2 (or auto_close). An attacker submits roughly 100 KB of Markdown packed with repeated '[](x (', '[](x(', or '![' openers in a single paragraph; the auto-close path performs a quadratic forward scan of the link tail, occupying a BEAM scheduler for over ten seconds and degrading availability. No public exploit code is identified in the provided sources, though the vendor fix commits illustrate the vulnerable logic.

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

Denial of service in the Elixir Markdown library mdex (versions 0.14.2 up to but not including 0.15.0) allows an attacker who controls streamed or auto-closed Markdown to occupy a BEAM scheduler for more than ten seconds with roughly 100 KB of crafted bracket openers. Only applications that render untrusted Markdown through MDEx.stream/2 or with the auto_close option enabled - live previews, streamed LLM output - reach the vulnerable code path; default one-shot rendering does not. The flaw is an inefficient-algorithmic-complexity (quadratic) scan in lib/mdex/fragment_parser.ex, impact is availability-only, no public exploit code was identified at time of analysis, and the issue is rated low priority (monitor) with fixes committed upstream and released in 0.15.0.

RemediationAI

Vendor-released patch: upgrade mdex to 0.15.0 or later, which contains the parser rewrite referenced by commits 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af and bea359152bc1f63f3256ee86ca207151b815940d (commit 2c29b28 alone changes the link/image opener bookkeeping and the regex-based label, tilde-fence and quote-prefix scans, so partial cherry-picking is not advisable). Where an upgrade cannot be scheduled immediately, the actionable interim control is to stop feeding untrusted Markdown through MDEx.stream/2 or with the auto_close option enabled - for example by buffering LLM output and rendering it one-shot, which does not reach the vulnerable auto-close path - at the cost of losing incremental live-preview behaviour and re-parsing whole documents on each update. A second compensating measure is to cap the size and bracket density of Markdown accepted from untrusted sources before handing it to the parser, which raises the payload cost while risking truncation of legitimate long streamed responses. Because the impact is availability-only and the priority signal is monitor, no emergency change freeze is warranted, but the advisory at https://cna.erlef.org/cves/CVE-2026-129522.html and the OSV entry at https://osv.dev/vulnerability/EEF-CVE-2026-129522 should be reviewed for any additional fixed branches before deployment.

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

The weakness is CWE-407 (Inefficient Algorithmic Complexity) in MDEx.FragmentParser, the incremental Markdown fragment parser used when mdex is fed content progressively rather than as a single document. While auto-closing the final paragraph, close_bracket/5 performs an unbounded forward scan of the link tail for every '](' occurrence; when that scan finds no valid link destination, parsing resumes immediately after the ']', so the next '](' rescans the same tail. Each closed link additionally re-filters the entire list of pending image openers, so a paragraph stuffed with repeated '[](x (', '[](x(' or '![' openers degrades to quadratic time - about 100 KB of input reportedly holds a scheduler for over ten seconds. Because this runs on the BEAM, a long-running parse blocks that scheduler and degrades latency for other processes scheduled on it. The supplied source evidence shows the fix is broader than a single loop: the 'closed' state becomes a {closed_end, link_end} tuple so only openers created since the previous closed link are re-filtered, HTML tag stack handling is switched to a per-entry open-tag map so closers without a matching opener no longer walk the whole stack, and several regex-based scans (label delimiter escaping with trailing '\z' anchors, tilde fencing, quote-prefix expansion) are replaced with binary matching and iodata accumulation, all of which were themselves quadratic on long lines. The trigger conditions described above depend on the streaming/auto_close path being used; the trigger for any given application should be validated against its own rendering mode.

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

Markdown is usually network-supplied (AV:N); the required non-default stream/auto_close mode and large crafted payload make it AC:H; no auth or interaction, availability-only low impact.

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 Algorithmic Complexity vulnerability in MDEx.FragmentParser in leandrocp mdex allows an attacker who controls streamed or auto-closed Markdown to cause a denial of service through CPU exhaustion. Any application that renders untrusted Markdown with MDEx.stream/2 or the auto_close option is affected, for example live previews or streamed LLM output.

While auto-closing the last paragraph, close_bracket/5 in lib/mdex/fragment_parser.ex runs an unbounded forward scan of the link tail for every ](. When that scan finds no valid link, scanning resumes just after the ], so the next ]( rescans the same tail. Each closed link also re-filters every pending image opener. Repeated [](x (, [](x(, or ![ openers in one paragraph therefore cost quadratic time, and about 100 KB of input occupies a scheduler for over ten seconds.

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 Markdown library, only apps using streaming/auto_close 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.

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