{"id":"CVE-2026-42140","aliases":["CVE-2026-42140","GHSA-42fc-7w97-8vrc"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery (SSRF) in PlantUML Macro via 'server' parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-04T17:37:09.481Z","modified":"2026-10-26T19:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 2.4.1","status":"affected"}],"vendor":"xwiki-contrib","product":"macro-plantuml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.1"}],"ecosystem":"Maven","package":"org.xwiki.contrib.plantuml:macro-plantuml-macro","purl":"pkg:maven/org.xwiki.contrib.plantuml/macro-plantuml-macro","source":"ghsa"}],"references":[{"url":"https://github.com/xwiki-contrib/macro-plantuml/security/advisories/GHSA-42fc-7w97-8vrc","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/PLANTUML-25","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42140","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki-contrib/macro-plantuml","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-04T19:51:44.271Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42140","url":"https://www.cve.org/CVERecord?id=CVE-2026-42140","licence":"CVE Terms of Use","modified":"2026-05-04T19:52:14.187Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-42fc-7w97-8vrc","url":"https://github.com/advisories/GHSA-42fc-7w97-8vrc","licence":"CC-BY-4.0","modified":"2026-05-05T19:56:33.898Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42140","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42140","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:20.543Z","epss":{"score":0.00186,"percentile":0.08595,"date":"2026-12-01T12:00:22.000Z"}}