NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-42140: XWiki PlantUML Macro Vulnerable to Server-Side Request Forgery (SSRF) via 'server' parameter

mediumCVSS 3.1 4.4GHSA-42fc-7w97-8vrc

Impact The PlantUML Macro is vulnerable to Server-Side Request Forgery (SSRF). The macro allows users to specify an alternative PlantUML server via the server parameter. However, the application does not validate the supplied URL. An attacker can supply an internal IP address or a malicious external URL. The XWiki server will attempt to connect to this URL to "render" the diagram.

Published May 5, 2026

Affected packages

org.xwiki.contrib.plantuml:macro-plantuml-macro

Ecosystem
Maven
Affected
< 2.4.1
Fixed in
2.4.1
Check
mvn dependency:tree -Dincludes=org.xwiki.contrib.plantuml:macro-plantuml-macro

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

The PlantUML Macro is vulnerable to Server-Side Request Forgery (SSRF). The macro allows users to specify an alternative PlantUML server via the server parameter. However, the application does not validate the supplied URL. An attacker can supply an internal IP address or a malicious external URL. The XWiki server will attempt to connect to this URL to "render" the diagram.

This issue affects all versions of the Plant UML Macro extension till version 2.4 included.

Patches

Version 2.4.1 of the Plant UML Macro extension fixes the issue by verifying if the supplied server domain matches one of the trusted domain configured inside of XWiki.

Workarounds

Protect the XWiki server by placing it in a DMZ so that it cannot access any other internal servers.

Resources

The issue was fixed in PLANTUML-25 by the commit c8b19bda93058794e04c8862fc7ca85c59b5fe5c.

For more information

If there are any questions or comments about this advisory:

Attribution

The issue was reported by Łukasz Rybak.

Credited to lukasz-rybak.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology