CVE-2023-26140: XSS

Published Aug 16, 2023
·
Updated

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

Other sources

Versions of the package @excalidraw/excalidraw from 0.0.0 are vulnerable to Cross-site Scripting (XSS) via embedded links in whiteboard objects due to improper input sanitization.

Affected Software

2 affected componentsFixes available
npm/@excalidraw/excalidraw<0.15.3
0.15.3
excalidraw Excalidraw Node.js

Event History

Aug 16, 2023
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Advisory Published
09:00 PM

Frequently Asked Questions

1

What is the severity of CVE-2023-26140?

CVE-2023-26140 is classified as a Cross-Site Scripting (XSS) vulnerability which can potentially allow attackers to execute harmful scripts in the context of a user's session.

2

How do I fix CVE-2023-26140?

To fix CVE-2023-26140, update the @excalidraw/excalidraw package to version 0.15.4 or higher, which includes the necessary sanitization improvements.

3

What causes CVE-2023-26140?

CVE-2023-26140 is caused by improperly sanitizing URLs in links attached to canvas elements, allowing untrusted user input to lead to XSS vulnerabilities.

4

Who is affected by CVE-2023-26140?

Users of the npm package @excalidraw/excalidraw, particularly those using versions prior to 0.15.4 in environments that accept untrusted input, are affected by CVE-2023-26140.

5

What should I do if I cannot update due to dependencies for CVE-2023-26140?

If updating is not feasible due to dependency issues, review your code to ensure proper sanitization of URLs before incorporating user input into the canvas.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203