GHSA-v7v8-gjv7-ffmr
@excalidraw/excalidraw Cross-site Scripting vulnerability
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @excalidraw/excalidraw | < 0.15.3 | 0.15.3 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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
References
External links from the advisory. They lead to third-party sites.
- https://github.com/excalidraw/excalidraw/security/advisories/GHSA-v7v8-gjv7-ffmr
- https://nvd.nist.gov/vuln/detail/CVE-2023-26140
- https://github.com/excalidraw/excalidraw/pull/6728
- https://github.com/excalidraw/excalidraw/commit/b33fa6d6f64d27adc3a47b25c0aa55711740d0af
- https://github.com/excalidraw/excalidraw
- https://security.snyk.io/vuln/SNYK-JS-EXCALIDRAWEXCALIDRAW-5841658