{"id":"CVE-2026-58504","published":"2026-09-21T16:15:30Z","modified":"2026-09-29T15:05:34Z","title":"draw.io: Stored XSS on file open via editable=0 sibling cell — patch bypass of CVE-2026-46642","vendor":"jgraph","product":"drawio","tier":"tail","description":{"text":"draw.io is a configurable diagramming and whiteboarding application. Prior to version 30.2.5, opening or importing a crafted .drawio file can execute attacker-controlled JavaScript in the draw.io origin when selected cells are processed by TextFormatPanel.addFont() in src/main/webapp/js/grapheditor/Format.js. An HTML sibling cell keeps the formatted-label path enabled while an editable=0 plain-text sibling is excluded from the merged selection style but remains in the iteration set. graph.cellRenderer.getLabelValue() returns that plain-text label without HTML encoding, and mxUtils.canConvertHtmlToSvg() parses it as HTML, bypassing the earlier CVE-2026-46642 remediation. Successful exploitation can expose diagram data, browser storage, non-HttpOnly cookies, and same-origin actions available to the victim. This issue is fixed in version 30.2.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0025,"percentile":0.16615,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/jgraph/drawio/security/advisories/GHSA-c76x-r78m-phwx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6","tags":["x_refsource_MISC"]},{"url":"https://github.com/jgraph/drawio/releases/tag/v30.2.5","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.32},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"jgraph","affectedVersions":[{"vendor":"jgraph","product":"drawio","versions":["< 30.2.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-29T15:05:28.465307Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-83987","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jgraph-drawio-cve-2022-1575","parents":[{"from":"CVE-2026-46642","to":"CVE-2026-58504","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"…lection style but remains in the iteration set. graph.cellRenderer.getLabelValue() returns that plain-text label without HTML encoding, and mxUtils.canConvertHtmlToSvg() parses it as HTML, bypassing the earlier CVE-2026-46642 remediation.","from":"CVE.org","in":"CVE-2026-58504"}]},{"from":"CVE-2022-2014","to":"CVE-2026-58504","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/main/webapp/js/export.js","src/main/webapp/js/grapheditor/Format.js","src/main/webapp/js/grapheditor/Sidebar.js"],"commits":["https://github.com/jgraph/drawio/commit/3d3f819d7a04da7d53b37cc0ca4269c157ba2825","https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6"],"basis":"shared function","functions":["render"]}]},{"from":"CVE-2022-2015","to":"CVE-2026-58504","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/main/webapp/js/export.js","src/main/webapp/js/grapheditor/Format.js","src/main/webapp/js/grapheditor/Sidebar.js"],"commits":["https://github.com/jgraph/drawio/commit/3d3f819d7a04da7d53b37cc0ca4269c157ba2825","https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6"],"basis":"shared function","functions":["render"]}]},{"from":"CVE-2023-3973","to":"CVE-2026-58504","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/main/webapp/js/export.js","src/main/webapp/js/grapheditor/Format.js"],"commits":["https://github.com/jgraph/drawio/commit/1db2c2c653aa245d175d30c210239e3946bfcb95","https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6"],"basis":"shared function","functions":["render"]}]}]}}