{"id":"CVE-2026-58504","state":"PUBLISHED","title":"draw.io: Stored XSS on file open via editable=0 sibling cell — patch bypass of CVE-2026-46642","description":"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.","publishedAt":"2026-09-21T16:15:30.398Z","updatedAt":"2026-09-29T15:05:34.205Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["jgraph drawio"],"affected":[{"vendor":"jgraph","product":"drawio","versions":[{"version":"< 30.2.5","status":"affected"}]}],"references":["https://github.com/jgraph/drawio/security/advisories/GHSA-c76x-r78m-phwx","https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6","https://github.com/jgraph/drawio/releases/tag/v30.2.5"],"weaknesses":["CWE-79","CWE-116"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/58xxx/CVE-2026-58504.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-58504","state":"PUBLISHED","datePublished":"2026-09-21T16:15:30.398Z","dateUpdated":"2026-09-29T15:05:34.205Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-30T20:21:25.813Z"},"containers":{"cna":{"title":"draw.io: Stored XSS on file open via editable=0 sibling cell — patch bypass of CVE-2026-46642","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"jgraph","product":"drawio","versions":[{"version":"< 30.2.5","status":"affected"}]}],"references":[{"url":"https://github.com/jgraph/drawio/security/advisories/GHSA-c76x-r78m-phwx","name":"https://github.com/jgraph/drawio/security/advisories/GHSA-c76x-r78m-phwx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6","name":"https://github.com/jgraph/drawio/commit/7976c02e1b10b1687c028d82782f9f5d90a885d6","tags":["x_refsource_MISC"]},{"url":"https://github.com/jgraph/drawio/releases/tag/v30.2.5","name":"https://github.com/jgraph/drawio/releases/tag/v30.2.5","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-21T16:15:30.398Z"},"source":{"advisory":"GHSA-c76x-r78m-phwx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/jgraph/drawio/security/advisories/GHSA-c76x-r78m-phwx","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-29T15:05:28.465307Z","id":"CVE-2026-58504","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-29T15:05:34.205Z"}}]}}}