CVE-2026-42140: Macro plantuml macro XWiki PlantUML Macro Vulnerable To Vulnerability
MODERATECVE-2026-42140 is a MODERATE (CVSS 4.4) xwiki plantuml macro vulnerable to vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Macro plantuml macro libraries in the Maven ecosystem. The issue involves xwiki plantuml macro vulnerable to server-side request forgery (ssrf) via 'server' parameter. Remediation is available by upgrading affected packages to version 2.4.1.
CVE-2026-42140 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-42140
To remediate this vulnerability, upgrade all affected Macro plantuml macro dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.contrib.plantuml</groupId>
<artifactId>macro-plantuml-macro</artifactId>
<version>2.4.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.contrib.plantuml
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-42140, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.contrib.plantuml
Analyze the terminal output to locate any version of Macro plantuml macro in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.contrib.plantuml command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Macro plantuml macro, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42140 Affected Macro plantuml macro Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.contrib.plantuml:macro-plantuml-macro
|
Maven |
< 2.4.1
|
2.4.1
|
References
Frequently Asked Questions
What is CVE-2026-42140?
Which Macro plantuml macro versions are affected?
What version fixes CVE-2026-42140?
Is macro-plantuml-macro affected?
What is the CVSS score of CVE-2026-42140?
What CWE is associated with CVE-2026-42140?
How can I check Maven dependencies for CVE-2026-42140?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-42fc-7w97-8vrc",
"modified" : "2026-05-05T19:32:57Z",
"published" : "2026-05-05T19:32:57Z",
"aliases" : [ "CVE-2026-42140" ],
"summary" : "XWiki PlantUML Macro Vulnerable to Server-Side Request Forgery (SSRF) via 'server' parameter",
"details" : "### Impact\n\nThe [PlantUML Macro](https://extensions.xwiki.org/xwiki/bin/view/Extension/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.\n\nThis issue affects all versions of the Plant UML Macro extension till version 2.4 included.\n\n### Patches\n\nVersion 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](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HTrusteddomains).\n\n### Workarounds\n\nProtect the XWiki server by placing it in a DMZ so that it cannot access any other internal servers.\n\n### Resources\n\nThe issue was fixed in [PLANTUML-25](https://jira.xwiki.org/browse/PLANTUML-25) by the commit [c8b19bda93058794e04c8862fc7ca85c59b5fe5c](https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c).\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* Open an issue in [JIRA XWiki.org](https://jira.xwiki.org/)\n* Send an email to [Security Mailing List](mailto:security@xwiki.org)\n\n### Attribution\n\nThe issue was reported by Łukasz Rybak.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.contrib.plantuml:macro-plantuml-macro"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki-contrib/macro-plantuml/security/advisories/GHSA-42fc-7w97-8vrc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42140"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki-contrib/macro-plantuml"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/PLANTUML-25"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T19:32:57Z",
"nvd_published_at" : "2026-05-04T18:16:31Z"
}
}