XSS in Excalidraw

CVE-2024-32472

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.006 (43.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

  • Excalidraw — versions >=0.16.0, <0.16.4, >= 0.17.0, <0.17.6

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-32472?
CVE-2024-32472 is a medium-severity vulnerability in Excalidraw, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2024-04-17.
How severe is CVE-2024-32472?
Medium severity. CVSS v3 base score is 6.1 out of 10.