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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.6%top 53.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npm@excalidraw/excalidraw0.16.4GHSA-m64q-4jqh-f72f
npm@excalidraw/excalidraw0.17.6GHSA-m64q-4jqh-f72f

Affected products (as reported)

VendorProductVersions
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