Vulnerability · Published Apr 15, 2022 · Assigned by @huntrdev

CVE-2022-1231XSS via Embedded SVG in SVG Diagram Format in plantuml/plantuml

Critical 9.3

In plain English

A critical-severity cross-site scripting in plantuml/plantuml from plantuml. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.3Critical
Exploit odds (30 days)2.0%top 19.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12plantumlno fix listedDEBIAN-CVE-2022-1231
Debian:13plantuml1:1.2020.2+ds-6DEBIAN-CVE-2022-1231
Debian:14plantuml1:1.2020.2+ds-6DEBIAN-CVE-2022-1231
Ubuntu:22.04:LTSplantuml1:1.2020.2+ds-1ubuntu0.1USN-7353-1
Ubuntu:22.04:LTSplantuml1:1.2020.2+ds-1ubuntu0.1UBUNTU-CVE-2022-1231
Ubuntu:24.04:LTSplantuml1:1.2020.2+ds-3ubuntu1.1USN-7353-1
Ubuntu:24.04:LTSplantuml1:1.2020.2+ds-3ubuntu1.1UBUNTU-CVE-2022-1231

Affected products (as reported)

VendorProductVersions
plantuml plantuml/plantuml unspecified – before 1.2022.4

Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

References