{"affected":[{"defaultStatus":"unaffected","ecosystem":"hex","packageName":"mdex","product":"mdex","source":"CNA: EEF","vendor":"leandrocp","versions":[{"lessThan":"0.13.2","status":"affected","version":"0.8.3","versionType":"semver"}]},{"defaultStatus":"unaffected","ecosystem":"github","packageName":"leandrocp/mdex","product":"mdex","source":"CNA: EEF","vendor":"leandrocp","versions":[{"lessThan":"2817147f5b87ce7186aa604c9ee72499485b8f2f","status":"affected","version":"9852db2456fdc9d856eb636603a7f608e22e3793","versionType":"git"}]}],"cveId":"CVE-2026-54889","cwes":["CWE-79"],"description":"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.","epss":{"date":"2026-11-23","percentile":0.34258,"score":0.00393},"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/leandrocp/mdex/security/advisories/GHSA-4383-7xfp-gpph"}],"kev":null,"metrics":[{"score":5.1,"severity":"medium","source":"CNA: EEF","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","version":"4.0"}],"modifiedAt":1795493405421,"publishedAt":1782760249841,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/leandrocp/mdex/security/advisories/GHSA-4383-7xfp-gpph"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-54889.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-54889"},{"source":"CNA: EEF","tags":["related"],"url":"https://github.com/leandrocp/mdex/commit/9852db2456fdc9d856eb636603a7f608e22e3793"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/leandrocp/mdex/security/advisories/GHSA-4383-7xfp-gpph"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"Sanitize 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)."},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f"}],"revision":"27478963d7098f4fe14ee7c792f83162b1a89d90b0381300417b3426ffe7b263","sources":[{"modifiedAt":1795493405421,"name":"CNA: EEF","retrievedAt":1795496970323,"url":"https://www.cve.org/CVERecord?id=CVE-2026-54889"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795496983155,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54889"}],"ssvc":{"assessedAt":1782766114044,"automatable":"no","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS)","updatedAt":1795496983155}