CVE-2022-3138 Cross-site Scripting (XSS) - Generic in jgraph/drawio
An attacker can inject malicious scripts into drawio diagrams, potentially executing code or stealing user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-3138?
CVE-2022-3138 is a medium-severity cross-site scripting vulnerability in jgraph/drawio, published on 8 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site Scripting (XSS) - Generic in GitHub repository jgraph/drawio prior to 20.3.0.
Weakness: CWE-79
Which versions are affected by CVE-2022-3138?
It affects 1 product.
Products include Diagrams Drawio.
How do I fix CVE-2022-3138?
No fix has been published for CVE-2022-3138 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-3138 being exploited?
There is no known exploitation of CVE-2022-3138 in the wild and no public exploit code.
Other vulnerabilities in jgraph/drawio
- CVE-2023-3973 Cross-site Scripting (XSS) - Reflected in jgraph/drawio
- CVE-2023-3974 OS Command Injection in jgraph/drawio
- CVE-2022-2014 Code Injection in jgraph/drawio
- CVE-2022-1575 Arbitrary Code Execution through Sanitizer Bypass in jgraph/drawio
- CVE-2023-3975 OS Command Injection in jgraph/drawio
Sources
Also known as GHSA-ch99-86q2-42rq.