{"answers":{"affected":"2 open source packages ship an affected version, including org.xwiki.contrib.plantuml:macro-plantuml-macro.","exploited":"There is no known exploitation of CVE-2026-42140 in the wild and no public exploit code.","fix":"Upgrade org.xwiki.contrib.plantuml:macro-plantuml-macro to 2.4.1 or later.","what":"CVE-2026-42140 is a medium-severity server-side request forgery vulnerability in xwiki-contrib macro-plantuml, published on 4 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42140 and fix it if it is affected.\n\nWhat it is: CVE-2026-42140 is a medium-severity server-side request forgery vulnerability in xwiki-contrib macro-plantuml, published on 4 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42140 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.xwiki.contrib.plantuml:macro-plantuml-macro (Maven): affected all versions; fixed in 2.4.1\n- org.xwiki.contrib.plantuml:macro-plantuml-macro (Maven): affected all versions; fixed in 2.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42140/ (Markdown: https://insights.sbomify.com/CVE-2026-42140/index.md)","id":"CVE-2026-42140","markdown":"https://insights.sbomify.com/CVE-2026-42140/index.md","name":"CVE-2026-42140","record":{"aliases":["GHSA-42fc-7w97-8vrc"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki PlantUML Macro","requires_auth":"low_privilege","summary":"An attacker can exploit the PlantUML Macro in XWiki to perform Server-Side Request Forgery by supplying unvalidated URLs, potentially accessing internal resources.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Server-Side Request Forgery (SSRF) in PlantUML Macro via 'server' parameter","id":"CVE-2026-42140","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Xibo: Authenticated Server-Side Request Forgery (SSRF) in Library Upload via URL functionality","id":"CVE-2026-42141"},"packages":[{"ecosystem":"Maven","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"org.xwiki.contrib.plantuml:macro-plantuml-macro","purl":null,"source":"GHSA-42fc-7w97-8vrc"},{"ecosystem":"Maven","fixed":["2.4.1"],"introduced":["0"],"last_affected":[],"package":"org.xwiki.contrib.plantuml:macro-plantuml-macro","purl":"pkg:maven/org.xwiki.contrib.plantuml/macro-plantuml-macro","source":"GHSA-42fc-7w97-8vrc"}],"prev":{"headline":"Dify Vulnerable to Stored XSS via SVG-file upload","id":"CVE-2026-42138"},"products":["macro-plantuml"],"published":"2026-05-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-04","vendors":["xwiki-contrib"]},"summary":"An attacker can exploit the PlantUML Macro in XWiki to perform Server-Side Request Forgery by supplying unvalidated URLs, potentially accessing internal resources.","url":"https://insights.sbomify.com/CVE-2026-42140/"}