Vulnerability · Published Apr 17, 2024 · Assigned by GitHub_M
CVE-2024-32472excalidraw vulnerable to a Stored XSS in excalidraw's web embed component
Medium 6.1
In plain English
A medium-severity cross-site scripting in excalidraw from excalidraw. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @excalidraw/excalidraw | 0.16.4 | GHSA-m64q-4jqh-f72f |
| npm | @excalidraw/excalidraw | 0.17.6 | GHSA-m64q-4jqh-f72f |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| excalidraw | excalidraw | >=0.16.0, <0.16.4>= 0.17.0, <0.17.6 |
Weakness: CWE-79, CWE-80 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/excalidraw/excalidraw/security/advisories/GHSA-m64q-4jqh-f72f x_refsource_CONFIRM
- https://github.com/excalidraw/excalidraw/commit/6be752e1b6d776ccfbd3bb9eea17463cb264121d x_refsource_MISC
- https://github.com/excalidraw/excalidraw/commit/988f81911ca58e3ca2583e0dd44a954dd00e09d0 x_refsource_MISC