{"id":"CVE-2024-32472","published":"2024-04-17T21:23:57Z","modified":"2024-08-02T02:13:39Z","title":"excalidraw vulnerable to a Stored XSS in excalidraw's web embed component","vendor":"excalidraw","product":"excalidraw","tier":"tail","description":{"text":"excalidraw is an open source virtual hand-drawn style whiteboard. A stored XSS vulnerability in Excalidraw's web embeddable component. This allows arbitrary JavaScript to be run in the context of the domain where the editor is hosted. There were two vectors. One rendering untrusted string as iframe's `srcdoc` without properly sanitizing against HTML injection. Second by improperly sanitizing against attribute HTML injection. This in conjunction with allowing `allow-same-origin` sandbox flag (necessary for several embeds) resulted in the XSS. This vulnerability is fixed in 0.17.6 and 0.16.4.","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.00561,"percentile":0.47553,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/excalidraw/excalidraw/security/advisories/GHSA-m64q-4jqh-f72f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/excalidraw/excalidraw/commit/6be752e1b6d776ccfbd3bb9eea17463cb264121d","tags":["x_refsource_MISC"]},{"url":"https://github.com/excalidraw/excalidraw/commit/988f81911ca58e3ca2583e0dd44a954dd00e09d0","tags":["x_refsource_MISC"]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":9.51},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"excalidraw","affectedVersions":[{"vendor":"excalidraw","product":"excalidraw","versions":[">=0.16.0, <0.16.4",">= 0.17.0, <0.17.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-26T15:06:18.717604Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@excalidraw/excalidraw","vulnerableRanges":[">=0.16.0, <0.16.4",">=0.17.0, <0.17.6"],"patched":["0.16.4","0.17.6"],"from":["GHSA-m64q-4jqh-f72f"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in the web embeddable component of Excalidraw, the open source hand-drawn style whiteboard, arises from untrusted strings being rendered into iframe srcdoc attributes and attribute values without proper HTML sanitization. An attacker can run arbitrary JavaScript in the context of the domain hosting the editor when a user interacts with a crafted embed, since the allow-same-origin sandbox flag required by several embeds makes the injected script run with the host's origin.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:34Z"},"euvd":{"id":"EUVD-2024-1241","exploited":false,"provenance":"source"}}