Read the docs

URL filter bypass via control characters in MDEx Quill Delta output

Priority LOW 8CWE-180Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

MDEx from 0.13.2 before 0.15.0 is affected by a flaw where its URL filter validates before canonicalizing URLs. An attacker who controls Markdown input can place javascript: or data: URLs into Quill Delta output using entity-encoded control characters, such as a tab inside the scheme, so the dangerous-URL check passes. Browsers strip those characters when parsing, so the link runs as javascript:. Only applications that place the Delta link or image value into an href or src without their own URL check are exposed.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

Incorrect Behavior Order: Validate Before Canonicalize vulnerability in leandrocp mdex allows an attacker who controls Markdown input to place javascript: and data: URLs into Quill Delta output via entity-encoded control characters. MDEx.to_delta/2 blanks link, wikilink and image URLs that its dangerous-URL check flags, but render_url/2 in lib/mdex/delta_converter.ex runs that prefix check on the entity-decoded URL without first normalizing it as a browser would. A destination such as java	script:alert(1) reaches the check with a tab inside the scheme, passes, and is emitted unchanged. Browsers remove tab, carriage return and line feed and trim leading C0 control characters and spaces when parsing a URL, so the value runs as javascript:. Only applications that place the Delta link or image value into an href or src without their own URL check are exposed. Stock Quill re-sanitizes link protocols and is not affected. This issue affects mdex: from 0.13.2 before 0.15.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed mdex (leandrocp): 0.15.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
leandrocpmdex0.13.2 to before 0.15.00.15.0Patch availableCNA
  • mdex Vendorleandrocp Affected 0.13.2 to before 0.15.0 Fixed in 0.15.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*——leandrocp
  • cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:* Versions — — ·leandrocp

Remediation

Upgrade mdex to version 0.15.0, which fixes the issue. Applications that use the Delta link or image values should also apply their own URL check before placing them in an href or src.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA mdex (leandrocp) Fixed in 0.15.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    leandrocp mdex 0.15.0

    10 records Highest priority Priority MEDIUM 2 MEDIUM, 8 LOW

    Other records, highest priority first

    • TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotesPriority MEDIUM 46
    • TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustionPriority MEDIUM 46
    • TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
  • Release ·

    leandrocp mdex 75e735a26859f93c36f10d17a3119f856fe69009

    2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotesPriority MEDIUM 46

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-136129
  2. 2026-11-30 CISA SSVC decision points changed
  3. 2026-11-30 Alias added: GHSA-34vq-947r-cwp7

References

  • TI-2026-39661 Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex CVSS 4.0MEDIUM 6.9
  • TI-2026-38511 Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service CVSS 4.0MEDIUM 6.9
  • TI-2026-39662 Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS) CVSS 4.0MEDIUM 5.1
  • TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes CVSS 4.0MEDIUM 6.9
  • TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion CVSS 4.0MEDIUM 6.9
  • TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and links CVSS 4.0MEDIUM 5.1
See all 15 →

Sources