{"id":"CVE-2026-54889","aliases":["CVE-2026-54889","EEF-CVE-2026-54889","GHSA-4383-7xfp-gpph"],"related":[],"kind":"vulnerability","state":"published","title":"Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS)","summary":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in leandrocp mdex allows cross-site scripting via unsanitized URL schemes in Quill Delta output.\n\nMDEx.to_delta/2 converts Markdown into a Quill Delta. MDEx.DeltaConverter.default_convert_node/3 in lib/mdex/delta_converter.ex copies the URL of a link, wikilink, or image node directly from the parsed Markdown into the Delta \"link\" or \"image\" attribute without applying a scheme allowlist or any normalization.\n\nAn attacker who controls the Markdown text can supply a javascript: URL (for example [click](javascript:alert(document.cookie))) that survives verbatim into the Delta attribute. When the Delta is rendered to HTML by a downstream renderer (such as quill-delta-to-html or the Quill client), the attribute becomes an <a href> or <img src>, and the javascript: scheme executes in the browser of anyone who views the rendered content. The link and wikilink cases are the strongest vectors because javascript: in an href executes on click; the image case is lower impact because javascript: in <img src> generally does not execute in modern browsers.\n\nThis issue affects mdex: from 0.8.3 before 0.13.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in leandrocp mdex allows cross-site scripting via unsanitized URL schemes in Quill Delta output.\n\nMDEx.to_delta/2 converts Markdown into a Quill Delta. MDEx.DeltaConverter.default_convert_node/3 in lib/mdex/delta_converter.ex copies the URL of a link, wikilink, or image node directly from the parsed Markdown into the Delta \"link\" or \"image\" attribute without applying a scheme allowlist or any normalization.\n\nAn attacker who controls the Markdown text can supply a javascript: URL (for example [click](javascript:alert(document.cookie))) that survives verbatim into the Delta attribute. When the Delta is rendered to HTML by a downstream renderer (such as quill-delta-to-html or the Quill client), the attribute becomes an <a href> or <img src>, and the javascript: scheme executes in the browser of anyone who views the rendered content. The link and wikilink cases are the strongest vectors because javascript: in an href executes on click; the image case is lower impact because javascript: in <img src> generally does not execute in modern browsers.\n\nThis issue affects mdex: from 0.8.3 before 0.13.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of Input During Web Page Generation (XSS) vulnerability in leandrocp mdex allows cross-site scripting via unsanitized URL schemes in Quill Delta output.\n\n`MDEx.to_delta/2` converts Markdown into a Quill Delta. `MDEx.DeltaConverter.default_convert_node/3` in `lib/mdex/delta_converter.ex` copies the URL of a link, wikilink, or image node directly from the parsed Markdown into the Delta `\"link\"` or `\"image\"` attribute without applying a scheme allowlist or any normalization.\n\nAn attacker who controls the Markdown text can supply a `javascript:` URL (for example `[click](javascript:alert(document.cookie))`) that survives verbatim into the Delta attribute. When the Delta is rendered to HTML by a downstream renderer (such as `quill-delta-to-html` or the Quill client), the attribute becomes an `<a href>` or `<img src>`, and the `javascript:` scheme executes in the browser of anyone who views the rendered content. The link and wikilink cases are the strongest vectors because `javascript:` in an `href` executes on click; the image case is lower impact because `javascript:` in `<img src>` generally does not execute in modern browsers.\n\nThis issue affects mdex: from 0.8.3 before 0.13.2.\n\n## Workarounds\n\nSanitize the Quill Delta produced by `MDEx.to_delta/2` before rendering it: drop or blank any `\"link\"` or `\"image\"` value whose URL scheme is not in a safe allowlist (`http`, `https`, `mailto`, `tel`).\n\n## Configurations\n\nThe application must pass untrusted Markdown to `MDEx.to_delta/2` and then render the resulting Quill Delta to HTML with a renderer that maps the `\"link\"` and `\"image\"` attributes to `href` and `src` without applying its own URL scheme sanitization (for example `quill-delta-to-html` or the Quill client).","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de Neutralización Incorrecta de Entrada Durante la Generación de Páginas Web (XSS) en leandrocp mdex permite cross-site scripting a través de esquemas de URL no saneados en la salida de Quill Delta.\n\n’Elixir.MDEx’:to_delta/2 convierte Markdown en un Quill Delta. ’Elixir.MDEx.DeltaConverter’:default_convert_node/3 en lib/mdex/delta_converter.ex copia la URL de un enlace, wikienlace o nodo de imagen directamente desde el Markdown analizado en el atributo Delta “link” o “image” sin aplicar una lista blanca de esquemas o ninguna normalización.\n\nUn atacante que controla el texto Markdown puede proporcionar una URL javascript_disabled: (por ejemplo [click](javascript_disabled: alert(document.cookie))) que sobrevive textualmente en el atributo Delta. Cuando el Delta se renderiza a HTML por un renderizador descendente (como quill-delta-to-html o el cliente Quill), el atributo se convierte en un <a href> o <img src>, y el esquema javascript_disabled: se ejecuta en el navegador de cualquiera que vea el contenido renderizado. Los casos de enlace y wikienlace son los vectores más fuertes porque javascript_disabled: en un href se ejecuta al hacer clic; el caso de la imagen tiene un impacto menor porque javascript_disabled: en <img src> generalmente no se ejecuta en navegadores modernos.\n\nEste problema afecta a mdex: desde 0.8.3 antes de 0.13.2.","source":"nvd"}],"published":"2026-06-29T19:10:49.841Z","modified":"2026-11-25T06:30:11.759Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.8.3","fixed":"0.13.2","status":"affected"}],"vendor":"leandrocp","product":"mdex","package":"mdex","cpe":"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*","repo":"https://github.com/leandrocp/mdex","source":"cvelist"},{"ranges":[{"type":"git","introduced":"9852db2456fdc9d856eb636603a7f608e22e3793","fixed":"2817147f5b87ce7186aa604c9ee72499485b8f2f","status":"affected"}],"vendor":"leandrocp","product":"mdex","package":"leandrocp/mdex","cpe":"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*","repo":"https://github.com/leandrocp/mdex","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.3","status":"affected","fixed":"0.13.2"}],"ecosystem":"Hex","package":"mdex","purl":"pkg:hex/mdex","source":"eef"},{"ranges":[{"type":"git","introduced":"9852db2456fdc9d856eb636603a7f608e22e3793","status":"affected","fixed":"2817147f5b87ce7186aa604c9ee72499485b8f2f"}],"repo":"https://github.com/leandrocp/mdex","source":"eef"}],"references":[{"url":"https://github.com/leandrocp/mdex/security/advisories/GHSA-4383-7xfp-gpph","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-54889.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-54889","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/leandrocp/mdex/commit/9852db2456fdc9d856eb636603a7f608e22e3793","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/mdex","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Leandro Pereira"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-29T20:48:34.044Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54889","url":"https://www.cve.org/CVERecord?id=CVE-2026-54889","licence":"CVE Terms of Use","modified":"2026-11-24T04:10:05.421Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-54889","url":"https://osv.dev/vulnerability/EEF-CVE-2026-54889","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:11.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54889","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54889","licence":"Public domain","modified":"2026-11-24T05:18:25.087Z"}],"updatedAt":"2026-11-25T22:59:26.654Z","epss":{"score":0.00393,"percentile":0.35634,"date":"2026-12-01T12:00:22.000Z"}}