Skip to content

@excalidraw/excalidraw Cross-site Scripting vulnerability

Moderate severity GitHub Reviewed Published Aug 16, 2023 in excalidraw/excalidraw

Package

npm @excalidraw/excalidraw (npm)

Affected versions

< 0.15.3

Patched versions

0.15.3

Description

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
excalidraw/excalidraw#6728

References

@dwelle dwelle published to excalidraw/excalidraw Aug 16, 2023
Published to the GitHub Advisory Database Aug 16, 2023
Reviewed Aug 16, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2023-26140

GHSA ID

GHSA-v7v8-gjv7-ffmr

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.