CVE-2026-42140
JSON

4.4medium

Server-Side Request Forgery (SSRF) in PlantUML Macro via 'server' parameter

Severity
4.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-42fc-7w97-8vrc

Description

PlantUML Macro is a macro for rendering UML diagrams from simple textual schemes. Prior to version 2.4.1, 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 has been patched in version 2.4.1.

Affected

Product or packageVersionsReported by
xwiki-contrib macro-plantuml< 2.4.1CVE List
org.xwiki.contrib.plantuml:macro-plantuml-macro (Maven)before 2.4.1GitHub Advisory Database

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

PlantUML Macro is a macro for rendering UML diagrams from simple textual schemes. Prior to version 2.4.1, 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 has been patched in version 2.4.1.

GitHub Advisory Database
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.

NVD (es)

Macro PlantUML es una macro para renderizar diagramas UML a partir de esquemas textuales simples. Antes de la versión 2.4.1, la Macro PlantUML es vulnerable a falsificación de petición del lado del servidor (SSRF). La macro permite a los usuarios especificar un servidor PlantUML alternativo a través del parámetro ’server’. Sin embargo, la aplicación no valida la URL proporcionada. Un atacante puede proporcionar una dirección IP interna o una URL externa maliciosa. El servidor XWiki intentará conectarse a esta URL para ’renderizar’ el diagrama. Este problema ha sido parcheado en la versión 2.4.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42140 changed 2026-05-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-42fc-7w97-8vrc changed 2026-05-05CC-BY-4.0
NVDCVE-2026-42140 changed 2026-10-26Public domain