What’s Vulnerable › Vulnerabilities
CVE-2022-1231: XSS via Embedded SVG in SVG Diagram Format in plantuml/plantuml
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-04-15 · updated 2026-06-17
- Weakness: CWE-79
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).
Affected products
- Fedoraproject Fedora: 35, 36
- net.sourceforge.plantuml:plantuml: before 1.2022.4 — fixed in 1.2022.4
How to fix
Upgrade to a fixed version: net.sourceforge.plantuml:plantuml 1.2022.4. Check the vendor advisory for mitigations.
References
- https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903
- https://huntr.dev/bounties/27db9509-6cd3-4148-8d70-5942f3837604
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EO26WBHQRMWTS44M5VLZJIJZOIGJYL3A/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FQMHXN5BVBK433C5SVSSBXWB5JLJ7NID/
- https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903
- https://huntr.dev/bounties/27db9509-6cd3-4148-8d70-5942f3837604
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EO26WBHQRMWTS44M5VLZJIJZOIGJYL3A/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FQMHXN5BVBK433C5SVSSBXWB5JLJ7NID/
Get alerted when CVE-2022-1231 or the next vulnerability affects your stack