
CVE-2026-42140: SSRF in XWiki PlantUML Macro

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
The PlantUML macro accepts a caller-selected server URL and sends a rendering request to that address. Versions before 2.4.1 do not validate the destination against trusted domains, allowing server-side requests to internal services.
Run poc.py on the host of an authorized local XWiki lab:
python3 poc.py --callback-host 172.19.0.1
Use the Docker bridge address that the XWiki container can reach as --callback-host. The script prints a {{plantuml}} block. Save that block in a page as an EDIT-only user, then view the page. A GET request logged by the script confirms the server-side fetch. The path should start with /svg/ and contain the encoded diagram. PlantUML Macro 2.4.1 should reject an untrusted callback host.
The local XWiki research tree contains a separate file-read PoC for version 2.4.1. It is a different issue and is not included here. This SSRF PoC was built from the published advisory and source path; a vulnerable 2.4.0 lab was not available for a positive retest during publication.