CVE-2026-0858

plantuml: PlantUML: Arbitrary script execution via Stored Cross-Site Scripting in GraphViz diagrams

Published Jan 16, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Versions of the package net.sourceforge.plantuml:plantuml before 1.2026.0 are vulnerable to Stored XSS due to insufficient sanitization of interactive attributes in GraphViz diagrams. As a result, a crafted PlantUML diagram can inject malicious JavaScript into generated SVG output, leading to arbitrary script execution in the context of applications that render the SVG.

Analysis

AI-generated

Technical impact

The vulnerability is a stored cross‑site scripting flaw that originates from insufficient sanitization of interactive attributes in GraphViz diagrams produced by PlantUML. A maliciously crafted diagram can inject JavaScript into the resulting SVG, which then executes with the privileges of any application that renders the SVG. This is an input validation weakness, classified as CWE‑79.

Affected Systems

PlantUML (net.sourceforge.plantuml:plantuml) versions older than 1.2026.0 are affected. Clients that generate or display GraphViz diagrams with these older versions can be exploited.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate risk, while the EPSS score of less than 1 % shows a very low probability of exploitation, and it is not listed in the CISA KEV catalog. Exploitation requires that an attacker supply a PlantUML diagram that the application stores and later renders as SVG; the injected script runs in the context of the rendering application or the user's session, potentially enabling data theft or session hijacking. Attackers with the ability to influence the content rendered by the vulnerable application are the primary threat actors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to PlantUML v1.2026.0 or later, which removes the insecure handling of interactive GraphViz attributes.
  • If upgrading is delayed, sanitize or strip interactive attributes from any generated SVG before it is served to users, and restrict the use of untrusted diagram input.
  • Monitor application logs for signs of injected script execution and disable diagram import functionality if it is not essential to operations.

Generated by OpenCVE AI on April 18, 2026 at 05:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hrvf-g648-rf3m PlantUML is vulnerable to Stored XSS due to insufficient sanitization of interactive attributes in GraphViz diagrams
History
Type Values Removed Values Added
CPEs cpe:2.3:a:plantuml:plantuml:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Plantuml
Plantuml plantuml
Vendors & Products Plantuml
Plantuml plantuml
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title plantuml: PlantUML: Arbitrary script execution via Stored Cross-Site Scripting in GraphViz diagrams
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description Versions of the package net.sourceforge.plantuml:plantuml before 1.2026.0 are vulnerable to Stored XSS due to insufficient sanitization of interactive attributes in GraphViz diagrams. As a result, a crafted PlantUML diagram can inject malicious JavaScript into generated SVG output, leading to arbitrary script execution in the context of applications that render the SVG.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Jan 16, 2026, 2:10 PM
Reserved
Jan 12, 2026, 9:57 AM
Status
Analyzed
Published
Jan 16, 2026, 5:16 AM
Modified
Jun 17, 2026, 10:11 AM
Severity
Moderate
Public date
Jan 16, 2026, 5:00 AM