VDB
Sign up
MEDIUM6.1

GHSA-v7v8-gjv7-ffmr

@excalidraw/excalidraw Cross-site Scripting vulnerability

Quick fix

GHSA-v7v8-gjv7-ffmr — @excalidraw/excalidraw: upgrade to the fixed version with the command below.

npm install @excalidraw/excalidraw@0.15.3

Details

### Impact

XSS vulnerability due to improperly sanitizing URLs of links that can be attached on canvas elements. This affects users of the npm package `@excalidraw/excalidraw` provided it was deployed in environments where untrusted user input in drawings that are then shared with third parties is a concern. If you only hosted the editor in trusted environments, or sharing didn't take place, the impact is minimized.

### Patches

Patch is available on version 0.15.3 and up (stable), or latest `@excalidraw/excalidraw@next` (unstable releases).

### Workarounds

No workaround without upgrading unless deployed in environments without untrusted user input.

### References

https://security.snyk.io/vuln/SNYK-JS-EXCALIDRAWEXCALIDRAW-5841658 https://github.com/excalidraw/excalidraw/pull/6728

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@excalidraw/excalidraw
Introduced in: 0Fixed in: 0.15.3
Fixnpm install @excalidraw/excalidraw@0.15.3

References