Cross-site scripting via unsanitized canvas links
Published Aug 16, 2023 · Updated Oct 2, 2024
Cross-site scripting in Excalidraw before 0.15.3 allows remote attackers to run script through a crafted link in a shared drawing. The Hyperlink renderer, drawing restore path, click handler, and SVG exporter used element.link as an href or navigation target without rejecting a JavaScript URI. Exploitation requires a third party to load an untrusted drawing and activate the embedded link, exposing browser-context data or actions.
Summary
What happened
Cross-site scripting in Excalidraw before 0.15.3 allows remote attackers to run script through a crafted link in a shared drawing. The Hyperlink renderer, drawing restore path, click handler, and SVG exporter used element.link as an href or navigation target without rejecting a JavaScript URI. Exploitation requires a third party to load an untrusted drawing and activate the embedded link, exposing browser-context data or actions.
The record
- CVE
- CVE-2023-26140
- Published
- Aug 16, 2023
- Updated
- Oct 2, 2024
- Vendor
- Excalidraw
- Product
- Excalidraw
- Classifications
- CWE-79, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 16, 2023CVE publishedPublication date reported by the CVE source.
- Oct 2, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0.0.0 <*
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Crafted drawing with a JavaScript-scheme element linkproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo