{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-136129",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-11-25T10:39:36.310Z",
        "datePublished": "2026-11-30T18:44:40.706Z",
        "dateUpdated": "2026-11-30T19:00:46.220Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.MDEx'",
                        "'Elixir.MDEx.DeltaConverter'"
                    ],
                    "packageName": "mdex",
                    "packageURL": "pkg:hex/mdex",
                    "product": "mdex",
                    "programFiles": [
                        "lib/mdex.ex",
                        "lib/mdex/delta_converter.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.MDEx':to_delta/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':convert/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':render_url/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':default_convert_node/3"
                        }
                    ],
                    "repo": "https://github.com/leandrocp/mdex",
                    "vendor": "leandrocp",
                    "versions": [
                        {
                            "lessThan": "0.15.0",
                            "status": "affected",
                            "version": "0.13.2",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.MDEx'",
                        "'Elixir.MDEx.DeltaConverter'"
                    ],
                    "packageName": "leandrocp/mdex",
                    "packageURL": "pkg:github/leandrocp/mdex",
                    "product": "mdex",
                    "programFiles": [
                        "lib/mdex.ex",
                        "lib/mdex/delta_converter.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.MDEx':to_delta/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':convert/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':render_url/2"
                        },
                        {
                            "name": "'Elixir.MDEx.DeltaConverter':default_convert_node/3"
                        }
                    ],
                    "repo": "https://github.com/leandrocp/mdex",
                    "vendor": "leandrocp",
                    "versions": [
                        {
                            "lessThan": "75e735a26859f93c36f10d17a3119f856fe69009",
                            "status": "affected",
                            "version": "2817147f5b87ce7186aa604c9ee72499485b8f2f",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>The application must pass untrusted Markdown to <code>MDEx.to_delta/2</code> without the <code>unsafe</code> option and render the resulting Delta with a consumer (for example a custom Delta to HTML renderer or a non-Quill editor) that maps the <code>link</code> and <code>image</code> values to <code>href</code> and <code>src</code> without applying its own URL scheme check.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "The application must pass untrusted Markdown to `MDEx.to_delta/2` without the `unsafe` option and render the resulting Delta with a consumer (for example a custom Delta to HTML renderer or a non-Quill editor) that maps the `link` and `image` values to `href` and `src` without applying its own URL scheme check."
                        }
                    ],
                    "value": "The application must pass untrusted Markdown to MDEx.to_delta/2 without the unsafe option and render the resulting Delta with a consumer (for example a custom Delta to HTML renderer or a non-Quill editor) that maps the link and image values to href and src without applying its own URL scheme check."
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "0.15.0",
                                    "versionStartIncluding": "0.13.2",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "reporter",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "analyst",
                    "value": "Jonatan Männchen / EEF"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Leandro Pereira"
                }
            ],
            "dateAssigned": "2026-11-30T16:55:44.000Z",
            "datePublic": "2026-11-30T18:44:39.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Incorrect Behavior Order: Validate Before Canonicalize vulnerability in leandrocp mdex allows an attacker who controls Markdown input to place <code>javascript:</code> and <code>data:</code> URLs into Quill Delta output via entity-encoded control characters.</p>\n<p><code>MDEx.to_delta/2</code> blanks link, wikilink and image URLs that its dangerous-URL check flags, but <code>render_url/2</code> in <code>lib/mdex/delta_converter.ex</code> runs that prefix check on the entity-decoded URL without first normalizing it as a browser would. A destination such as <code>java&amp;#9;script:alert(1)</code> 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 <code>javascript:</code>. Only applications that place the Delta <code>link</code> or <code>image</code> value into an <code>href</code> or <code>src</code> without their own URL check are exposed. Stock Quill re-sanitizes link protocols and is not affected.</p>\n<p>This issue affects mdex: from 0.13.2 before 0.15.0.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "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.\n\n`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&#9;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.\n\nThis issue affects mdex: from 0.13.2 before 0.15.0."
                        }
                    ],
                    "value": "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.\n\nMDEx.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&#9;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.\n\nThis issue affects mdex: from 0.13.2 before 0.15.0."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-267",
                    "descriptions": [
                        {
                            "lang": "en",
                            "supportingMedia": [
                                {
                                    "base64": false,
                                    "type": "text/html",
                                    "value": "<p>An attacker who can submit Markdown gets a stored <code>javascript:</code> or <code>data:</code> link into the Delta output, which runs script in the browser of a user who clicks it in an application that renders the Delta without its own URL check.</p>"
                                },
                                {
                                    "base64": false,
                                    "type": "text/markdown",
                                    "value": "An attacker who can submit Markdown gets a stored `javascript:` or `data:` link into the Delta output, which runs script in the browser of a user who clicks it in an application that renders the Delta without its own URL check."
                                }
                            ],
                            "value": "An attacker who can submit Markdown gets a stored javascript: or data: link into the Delta output, which runs script in the browser of a user who clicks it in an application that renders the Delta without its own URL check."
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 2.1,
                        "baseSeverity": "LOW",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "subIntegrityImpact": "LOW",
                        "userInteraction": "ACTIVE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-180",
                            "description": "CWE-180 Incorrect Behavior Order: Validate Before Canonicalize",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-30T18:44:40.706Z"
            },
            "references": [
                {
                    "name": "EEF CNA record for CVE-2026-136129",
                    "tags": [
                        "related",
                        "third-party-advisory"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-136129.html"
                },
                {
                    "name": "OSV record EEF-CVE-2026-136129",
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-136129"
                },
                {
                    "name": "Introducing commit 2817147 in leandrocp/mdex",
                    "tags": [
                        "related"
                    ],
                    "url": "https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f"
                },
                {
                    "name": "Fix commit 75e735a in leandrocp/mdex",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe69009"
                }
            ],
            "source": {
                "discovery": "INTERNAL"
            },
            "title": "Dangerous URL filter bypass via control characters in MDEx Quill Delta output (XSS)",
            "x_proofOfConcept": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<ol>\n<li>Convert <code>[plain](javascript:alert(1)) [tab](java&amp;#9;script:alert(1)) ![img](java&amp;#10;script:alert(2)) [lead](&amp;#1;javascript:alert(3))</code> with <code>MDEx.to_delta/2</code> and default options.</li>\n<li>Observe that the <code>plain</code> link is emitted as an empty string, while the other three are emitted as <code>java\\tscript:alert(1)</code>, <code>java\\nscript:alert(2)</code> and a value starting with byte 1 followed by <code>javascript:alert(3)</code>.</li>\n<li>Place the <code>tab</code> link value into an <code>&lt;a href&gt;</code> and click it: the browser strips the tab and runs <code>javascript:alert(1)</code>.</li>\n</ol>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "1. Convert `[plain](javascript:alert(1)) [tab](java&#9;script:alert(1)) ![img](java&#10;script:alert(2)) [lead](&#1;javascript:alert(3))` with `MDEx.to_delta/2` and default options.\n2. Observe that the `plain` link is emitted as an empty string, while the other three are emitted as `java\\tscript:alert(1)`, `java\\nscript:alert(2)` and a value starting with byte 1 followed by `javascript:alert(3)`.\n3. Place the `tab` link value into an `<a href>` and click it: the browser strips the tab and runs `javascript:alert(1)`."
                        }
                    ],
                    "value": "* Convert [plain](javascript:alert(1)) [tab](java&#9;script:alert(1)) ![img](java&#10;script:alert(2)) [lead](&#1;javascript:alert(3)) with MDEx.to_delta/2 and default options.\n* Observe that the plain link is emitted as an empty string, while the other three are emitted as java\\tscript:alert(1), java\\nscript:alert(2) and a value starting with byte 1 followed by javascript:alert(3).\n* Place the tab link value into an <a href> and click it: the browser strips the tab and runs javascript:alert(1)."
                }
            ],
            "x_technicalAnalysis": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p><strong>1. Entity decoding.</strong> Comrak decodes HTML entities in link and image destinations while parsing, so <code>java&amp;#9;script:alert(1)</code> becomes the URL <code>java</code>, a tab, <code>script:alert(1)</code>. The <code>&amp;Tab;</code> and <code>&amp;NewLine;</code> named entities, a leading <code>&amp;#1;</code> or <code>&amp;#32;</code>, <code>data&amp;#9;:</code> and reference-style definitions behave the same way.</p>\n<p><strong>2. Unnormalized check.</strong> <code>render_url/2</code> in <code>lib/mdex/delta_converter.ex</code> asks <code>MDExNative.Comrak.dangerous_url?/1</code> whether the URL is dangerous. That function is a plain prefix match on <code>javascript:</code>, <code>vbscript:</code>, <code>file:</code> and <code>data:</code>, so the decoded value does not match and is returned unchanged. A plain <code>javascript:</code> URL is still blanked.</p>\n<p><strong>3. Emission.</strong> The Link, Image and WikiLink clauses of <code>default_convert_node/3</code> write the value into the Delta <code>link</code> or <code>image</code> attribute. The HTML renderer is not affected because it also percent-encodes URLs; the Delta path has no such step.</p>\n<p><strong>4. Browser normalization.</strong> WHATWG URL parsing strips ASCII tab, line feed and carriage return anywhere and trims leading C0 controls and spaces, so a consumer that writes the value into <code>href</code> produces a working <code>javascript:</code> link.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "**1. Entity decoding.** Comrak decodes HTML entities in link and image destinations while parsing, so `java&#9;script:alert(1)` becomes the URL `java`, a tab, `script:alert(1)`. The `&Tab;` and `&NewLine;` named entities, a leading `&#1;` or `&#32;`, `data&#9;:` and reference-style definitions behave the same way.\n\n**2. Unnormalized check.** `render_url/2` in `lib/mdex/delta_converter.ex` asks `MDExNative.Comrak.dangerous_url?/1` whether the URL is dangerous. That function is a plain prefix match on `javascript:`, `vbscript:`, `file:` and `data:`, so the decoded value does not match and is returned unchanged. A plain `javascript:` URL is still blanked.\n\n**3. Emission.** The Link, Image and WikiLink clauses of `default_convert_node/3` write the value into the Delta `link` or `image` attribute. The HTML renderer is not affected because it also percent-encodes URLs; the Delta path has no such step.\n\n**4. Browser normalization.** WHATWG URL parsing strips ASCII tab, line feed and carriage return anywhere and trims leading C0 controls and spaces, so a consumer that writes the value into `href` produces a working `javascript:` link."
                        }
                    ],
                    "value": "1. Entity decoding. Comrak decodes HTML entities in link and image destinations while parsing, so java&#9;script:alert(1) becomes the URL java, a tab, script:alert(1). The &Tab; and &NewLine; named entities, a leading &#1; or &#32;, data&#9;: and reference-style definitions behave the same way.\n\n2. Unnormalized check. render_url/2 in lib/mdex/delta_converter.ex asks MDExNative.Comrak.dangerous_url?/1 whether the URL is dangerous. That function is a plain prefix match on javascript:, vbscript:, file: and data:, so the decoded value does not match and is returned unchanged. A plain javascript: URL is still blanked.\n\n3. Emission. The Link, Image and WikiLink clauses of default_convert_node/3 write the value into the Delta link or image attribute. The HTML renderer is not affected because it also percent-encodes URLs; the Delta path has no such step.\n\n4. Browser normalization. WHATWG URL parsing strips ASCII tab, line feed and carriage return anywhere and trims leading C0 controls and spaces, so a consumer that writes the value into href produces a working javascript: link."
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-11-30T19:00:37.785028Z",
                                "id": "CVE-2026-136129",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-11-30T19:00:46.220Z"
                }
            }
        ]
    }
}