The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42140

CVE-2026-42140: PlantUML Macro SSRF Vulnerability

CVE-2026-42140 is a Server-Side Request Forgery flaw in PlantUML Macro that allows attackers to make the server connect to internal or malicious URLs. This article covers the technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-42140 Overview

CVE-2026-42140 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in the PlantUML Macro extension for XWiki. The macro renders UML diagrams from textual schemes and accepts an alternative PlantUML server through a server parameter. Versions prior to 2.4.1 fail to validate the supplied URL, allowing attackers to point the server-side request to internal IP addresses or arbitrary external endpoints. The XWiki server then attempts to connect to the attacker-controlled URL while attempting to render the diagram. Maintainers patched this issue in version 2.4.1 by introducing a known-domains check.

Critical Impact

An authenticated XWiki user can coerce the server to issue HTTP requests to internal services, enabling reconnaissance of internal networks and limited interaction with non-public endpoints.

Affected Products

  • XWiki Contrib PlantUML Macro versions prior to 2.4.1
  • XWiki instances with the macro-plantuml extension installed
  • Deployments exposing the PlantUML macro to authenticated users

Discovery Timeline

  • 2026-05-04 - CVE-2026-42140 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-42140

Vulnerability Analysis

The PlantUML Macro lets users override the default rendering server through a server parameter inside the macro syntax. The XWiki backend takes this value, builds an HTTP request, and contacts the supplied host to fetch the rendered diagram. Because the macro performs no allow-list or scheme validation on the URL, the request executes against any host reachable from the XWiki server, including loopback addresses, link-local metadata endpoints, and internal services.

This behavior matches the classic SSRF [CWE-918] pattern. An attacker with permission to edit a wiki page can embed a PlantUML macro that targets internal infrastructure such as http://127.0.0.1:8080, http://169.254.169.254/latest/meta-data/, or unauthenticated administrative endpoints. The server's response or timing differences can leak information about the internal network topology.

Root Cause

The macro accepts a user-controlled URL through the server parameter and passes it directly to the HTTP client without validating the host, port, or scheme. No allow-list of trusted PlantUML servers existed before version 2.4.1, and the application did not block requests targeting private address ranges.

Attack Vector

Exploitation requires an authenticated user with edit rights on a wiki page and user interaction to render the page. The attacker creates a page containing a PlantUML macro that sets the server parameter to an internal or attacker-controlled URL. When the page renders, the XWiki backend issues the outbound request from its own network position.

java
// Patch excerpt - macro-plantuml-macro/src/main/java/org/xwiki/contrib/plantuml/internal/PlantUMLMacro.java
package org.xwiki.contrib.plantuml.internal;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

Source: GitHub Commit c8b19bd

The patch introduces java.net.URL parsing and a domain check, and adds a dependency on xwiki-platform-url-api for centralized URL validation.

Detection Methods for CVE-2026-42140

Indicators of Compromise

  • Outbound HTTP requests originating from the XWiki server process to private address ranges such as 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or 127.0.0.0/8.
  • Requests from XWiki to cloud metadata endpoints, including 169.254.169.254 and metadata.google.internal.
  • Wiki page revisions containing PlantUML macros with a non-default server parameter pointing outside trusted PlantUML hosts.

Detection Strategies

  • Review XWiki page history for {{plantuml server=...}} macro instances and flag any non-standard endpoints.
  • Inspect the XWiki application logs for HTTP client errors referencing internal hostnames or unusual ports.
  • Correlate egress proxy logs with the XWiki server identity to surface unexpected destinations triggered by macro rendering.

Monitoring Recommendations

  • Deploy egress filtering and alert on any outbound traffic from the XWiki host that targets internal subnets or cloud metadata services.
  • Track installed extension versions and alert when macro-plantuml reports a version below 2.4.1.
  • Monitor authenticated-user activity on wiki pages, focusing on edits that introduce or modify PlantUML macros.

How to Mitigate CVE-2026-42140

Immediate Actions Required

  • Upgrade the PlantUML Macro extension to version 2.4.1 or later through the XWiki Extension Manager.
  • Restrict edit permissions on wiki pages to trusted users until the upgrade is verified in production.
  • Audit existing pages for PlantUML macros referencing untrusted server values and remove or sanitize them.

Patch Information

The fix is committed in GitHub Commit c8b19bd and described in GHSA-42fc-7w97-8vrc. Tracking is available in Jira PLANTUML-25. Version 2.4.1 introduces URL parsing through java.net.URL and validates the supplied host against a known-domains list using the xwiki-platform-url-api component.

Workarounds

  • Block outbound traffic from the XWiki server to internal subnets and cloud metadata IPs at the network firewall.
  • Configure an HTTP egress proxy with an allow-list of trusted PlantUML rendering hosts.
  • Disable the PlantUML Macro extension until the patched version is deployed if business requirements allow.
bash
# Example iptables egress rule blocking access to AWS instance metadata from the XWiki host
iptables -A OUTPUT -m owner --uid-owner xwiki -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner xwiki -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner xwiki -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner xwiki -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechXwiki

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-42fc-7w97-8vrc

  • Jira Task PLANTUML-25
  • Related CVEs
  • CVE-2026-40104: XWiki Platform DoS Vulnerability

  • CVE-2026-40105: XWiki Platform XSS Vulnerability

  • CVE-2026-33229: XWiki Platform RCE Vulnerability

  • CVE-2025-66024: XWiki Blog Application XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English