Vulnerabilities in pkg:maven/org.xwiki.contrib.plantuml/macro-plantuml-macro

PACKAGE
Advisory Identifier: GHSA-42fc-7w97-8vrc
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.contrib.plantuml/macro-plantuml-macro

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.contrib.plantuml/macro-plantuml-macro. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-42fc-7w97-8vrc CVE-2026-42140 MODERATE XWiki PlantUML Macro Vulnerable to Server-Side Request Forgery (SSRF) via 'server' parameter

CVE-2026-42140 at a Glance

CVE Identifier CVE-2026-42140
GHSA Identifier GHSA-42fc-7w97-8vrc
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Macro plantuml macro
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

org.xwiki.contrib.plantuml:macro-plantuml-macro fixed: 2.4.1
<dependency>
    <groupId>org.xwiki.contrib.plantuml</groupId>
    <artifactId>macro-plantuml-macro</artifactId>
    <version>2.4.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact The [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. 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](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HTrusteddomains). ### 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](https://jira.xwiki.org/browse/PLANTUML-25) by the commit [c8b19bda93058794e04c8862fc7ca85c59b5fe5c](https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c). ### For more information If there are any questions or comments about this advisory: * Open an issue in [JIRA XWiki.org](https://jira.xwiki.org/) * Send an email to [Security Mailing List](mailto:security@xwiki.org) ### Attribution The issue was reported by Łukasz Rybak.

CVE-2026-42140 Affected Macro plantuml macro Versions

1 component(s)
Fixed Versions:
2.4.1
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?
CVE-2026-42140 is a security vulnerability in Macro plantuml macro involving XWiki PlantUML Macro Vulnerable to Server-Side Request Forgery (SSRF) via 'server' parameter under CWE-918: Server-Side Request Forgery (SSRF).
Which Macro plantuml macro versions are affected?
Affected versions include releases prior to 2.4.1 across affected packages: org.xwiki.contrib.plantuml:macro-plantuml-macro.
What version fixes CVE-2026-42140?
Upgrading to 2.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is macro-plantuml-macro affected?
Yes, org.xwiki.contrib.plantuml:macro-plantuml-macro is affected in releases prior to 2.4.1. Upgrade your dependency to 2.4.1 or later.
What is the CVSS score of CVE-2026-42140?
CVE-2026-42140 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-42140?
CVE-2026-42140 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check Maven dependencies for CVE-2026-42140?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.contrib.plantuml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}