Hex
CVE-2026-136129
Dangerous URL filter bypass via control characters in MDEx Quill Delta output (XSS)
- Severity
- Low 2.1
- Published
- 30 Nov 2026
- Last changed
- 30 Nov 2026
- Added to UpHeron
- 30 Nov 2026
- Fixed in
- 0.15.0
- Weakness
- CWE-180
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N- Sources
- CVE Program
Description
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.
Affected software
| Software | Affected versions |
|---|---|
mdexHex · osv:Hex:mdex |
|
About mdex
Vulnerabilities in mdex
- In our list
- 12
- Published in the last 12 months
- 12
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-129522Quadratic rescanning in MDEx auto-close link scanner allows CPU denial of serviceLow 2.1 30 Nov 2026
- CVE-2026-135775Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLsMedium 5.9 30 Nov 2026
- CVE-2026-131906Cubic-time nested block quote rendering in MDEx to_slack enables CPU denial of serviceMedium 6.9 30 Nov 2026
- CVE-2026-135699Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of serviceLow 2.1 30 Nov 2026
- CVE-2026-136130Slack mention injection through link destinations in MDEx.to_slack/2Low 2.1 30 Nov 2026
- CVE-2026-136268Code block fence breakout in MDEx to_slack/2 allows Slack mention and link injectionMedium 5.1 30 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-136129