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

Published May 4, 2026
·
Updated

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: Open an issue in JIRA XWiki.org Send an email to Security Mailing List

Attribution

The issue was reported by Łukasz Rybak.

Other sources

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.

NVD

Affected Software

2 affected componentsFixes available
XWiki PlantUML Macro<2.4.1
maven/org.xwiki.contrib.plantuml:macro-plantuml-macro<2.4.1
2.4.1

Event History

May 4, 2026
CVE Published
via MITRE·05:37 PM
Data Sourced
via MITRE·05:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness
May 5, 2026
Advisory Published
via GitHub·07:32 PM
Data Sourced
via GitHub·07:32 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42140?

CVE-2026-42140 has a high severity due to its potential for Server-Side Request Forgery (SSRF) which can lead to unauthorized access to internal resources.

2

How do I fix CVE-2026-42140?

To fix CVE-2026-42140, upgrade the XWiki PlantUML Macro to version 2.4.1 or later to mitigate the vulnerability.

3

What does CVE-2026-42140 affect?

CVE-2026-42140 affects the XWiki PlantUML Macro versions prior to 2.4.1, specifically enabling SSRF attacks.

4

Who is impacted by CVE-2026-42140?

Users of the XWiki PlantUML Macro who have not upgraded past version 2.4.1 are at risk from CVE-2026-42140.

5

Is CVE-2026-42140 exploitable remotely?

Yes, CVE-2026-42140 is exploitable remotely as it allows attackers to send crafted requests through the vulnerable server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203