{"id":"CVE-2026-42140","summary":"Server-Side Request Forgery (SSRF) in PlantUML Macro via 'server' parameter","details":"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.","aliases":["GHSA-42fc-7w97-8vrc"],"modified":"2026-10-28T11:13:23.979424287Z","published":"2026-05-04T17:37:09.481Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42140.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-918"]},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/PLANTUML-25"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42140.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki-contrib/macro-plantuml","events":[{"introduced":"0"},{"fixed":"c057de80c924518a768c1e78d15766dafae34891"},{"fixed":"c8b19bda93058794e04c8862fc7ca85c59b5fe5c"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"2.4.1"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c8b19bda93058794e04c8862fc7ca85c59b5fe5c"}]}]}}],"versions":["macro-plantuml-2.4","macro-plantuml-2.3.2","macro-plantuml-2.3.1","macro-plantuml-2.3.0","macro-plantuml-2.2.0","macro-plantuml-2.1.1","macro-plantuml-2.1","macro-plantuml-2.0.2","macro-plantuml-2.0.1","macro-plantuml-2.0","macro-plantuml-1.1","macro-plantuml-1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42140.json","vanir_signatures":[{"id":"CVE-2026-42140-2ec906d8","signature_type":"Function","signature_version":"v1","source":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c","target":{"file":"macro-plantuml-macro/src/test/java/org/xwiki/contrib/plantuml/IntegrationTests.java","function":"initialize"},"deprecated":false,"digest":{"length":786,"function_hash":"189491219493584667148725275297805878993"}},{"source":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c","target":{"file":"macro-plantuml-macro/src/main/java/org/xwiki/contrib/plantuml/internal/PlantUMLMacro.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["14613392020471511606436629117749943505","190994385488020735581431428232828272683","12968499710982766372802920795006727123","202943110127576274192042447021513004024","225150294911509514368223860161925109319","139254064610172115444928163753573516397","76701854261868563602726592171575850106","32232275290328075414712511516158270556","299880048961070304375041522339493791773","220824434689288456858337342151038107392","7654828985705265495958126453641302011","95830545707567405070033230089425728333","287156290125857150862337832475019883147","213380667944278041349468345077566158387","322749808316867868323247581400362347294","284633913123104837794764938787082134483","209838587747121138658914046716772842864"]},"id":"CVE-2026-42140-324ed627","signature_type":"Line","signature_version":"v1"},{"digest":{"line_hashes":["107597149494991830406729342647366838172","41039310156037980124666609641983000010","49940033355814375584633645313102808593","119326811310940327691863418375303549238","152984849301787309014084424359207757549","224609065903612863782070502680520053127","95451028881981771141859567861713598601","200373195156415197693065639626438553858","132947589976933862170189166520157495853","335032514430305237109440686401106548516"],"threshold":0.9},"id":"CVE-2026-42140-8342011c","signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c","target":{"file":"macro-plantuml-macro/src/test/java/org/xwiki/contrib/plantuml/IntegrationTests.java"},"deprecated":false},{"deprecated":false,"digest":{"length":149,"function_hash":"266910865951788884528181034105373387002"},"id":"CVE-2026-42140-e2ef13ef","signature_type":"Function","signature_version":"v1","source":"https://github.com/xwiki-contrib/macro-plantuml/commit/c8b19bda93058794e04c8862fc7ca85c59b5fe5c","target":{"function":"computeServer","file":"macro-plantuml-macro/src/main/java/org/xwiki/contrib/plantuml/internal/PlantUMLMacro.java"}}],"vanir_signatures_modified":"2026-10-28T11:13:23Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}