CVE-2022-1231 XSS via Embedded SVG in SVG Diagram Format in plantuml/plantuml
Stored XSS in PlantUML allows attackers to execute scripts, steal secrets, or hijack accounts in web-based diagram embedders.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1231?
CVE-2022-1231 is a critical cross-site scripting vulnerability in Fedoraproject Fedora, published on 15 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
XSS via Embedded SVG in SVG Diagram Format in GitHub repository plantuml/plantuml prior to 1.2022.4. Stored XSS in the context of the diagram embedder. Depending on the actual context, this ranges from stealing secrets to account hijacking or even to code execution for example in desktop applications. Web based applications are the ones most affected. Since the SVG format allows clickable links in diagrams, it is commonly used in plugins for web based projects (like the Confluence plugin, etc. see https://plantuml.com/de/running).
Weakness: CWE-79
Which versions are affected by CVE-2022-1231?
It affects 2 products.
Products include Fedoraproject Fedora, Plantuml Plantuml.
How do I fix CVE-2022-1231?
Upgrade to a fixed version.
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-1231 being exploited?
There is no known exploitation of CVE-2022-1231 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2022-1231, GHSA-cpj6-8368-p538, UBUNTU-CVE-2022-1231, USN-7353-1, openSUSE-SU-2024:12011-1.