A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-66474

CVE-2025-66474: XWiki Rendering RCE Vulnerability

CVE-2025-66474 is a remote code execution flaw in XWiki Rendering caused by insufficient protection against HTML injection. Attackers can execute arbitrary Groovy and Python macros. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: June 2, 2026

CVE-2025-66474 Overview

CVE-2025-66474 is a code injection vulnerability in XWiki Rendering, the generic rendering system that converts textual input from one syntax (wiki, HTML) to another (XHTML). The flaw is caused by insufficient protection against {{/html}} injection in wiki content. Any authenticated user who can edit their own profile or any document can break out of the HTML macro context and execute arbitrary script macros, including Groovy and Python. Successful exploitation yields remote code execution on the wiki server and unrestricted read and write access to all wiki contents. The issue affects versions 16.10.9 and below, 17.0.0-rc-1 through 17.4.2, and 17.5.0-rc-1 through 17.5.0. Fixes are available in versions 16.10.10, 17.4.3, and 17.6.0-rc-1.

Critical Impact

A low-privileged authenticated user can achieve remote code execution and full read/write access to wiki contents through {{/html}} macro injection.

Affected Products

  • XWiki Rendering versions 16.10.9 and below
  • XWiki Rendering 17.0.0-rc-1 through 17.4.2
  • XWiki Rendering 17.5.0-rc-1 through 17.5.0

Discovery Timeline

  • 2025-12-10 - CVE-2025-66474 published to NVD
  • 2025-12-19 - Last updated in NVD database

Technical Details for CVE-2025-66474

Vulnerability Analysis

XWiki Rendering parses wiki syntax containing macro blocks delimited by {{macroName}}...{{/macroName}}. The HTML macro lets authors embed raw HTML within wiki pages. The rendering layer fails to sanitize content that contains the closing macro sequence {{/html}} inside attacker-controlled input. An attacker can supply input containing {{/html}} followed by another macro call, such as {{groovy}} or {{python}}. The injected sequence terminates the HTML macro early and starts a script macro under the attacker's control. Because script macros execute server-side with the privileges available to the page, the attacker reaches remote code execution from a position that should have been confined to HTML rendering. The vulnerability maps to CWE-94 (Improper Control of Generation of Code) and CWE-95 (Eval Injection).

Root Cause

The rendering pipeline does not escape or neutralize occurrences of the macro terminator inside HTML macro content. A user who can edit any document — including their own user profile, which most authenticated users can edit — can place crafted text that breaks out of the macro context.

Attack Vector

The attacker needs only a normal authenticated account on the XWiki instance. They edit their profile or any document they can modify and inject a payload such as {{/html}}{{groovy}}<malicious code>{{/groovy}}. When the page is rendered, the Groovy or Python macro runs with script execution privileges, allowing OS command execution, file access, and arbitrary modification of wiki content.

No verified public exploit code is available. Technical details are documented in the GitHub Security Advisory GHSA-9xc6-c2rm-f27p and the related Jira issues XRENDERING-693, XRENDERING-792, XRENDERING-793, and XWIKI-23378.

Detection Methods for CVE-2025-66474

Indicators of Compromise

  • Document or user profile revisions containing the literal sequence {{/html}} followed by {{groovy}}, {{python}}, or other script macro identifiers.
  • Unexpected child processes spawned by the XWiki JVM, such as sh, bash, cmd.exe, or powershell.exe.
  • New or modified wiki pages authored by accounts that previously had no editing activity in administrative spaces.
  • Outbound network connections initiated by the XWiki application process to unfamiliar hosts shortly after page edits.

Detection Strategies

  • Search the XWiki document store and revision history for payload patterns combining macro closing tags and script macros.
  • Monitor application logs for script macro execution events triggered from user profile pages or low-privilege spaces.
  • Correlate document edit events with JVM child-process creation and file system writes outside the XWiki data directory.

Monitoring Recommendations

  • Enable verbose audit logging for document edits and macro execution in XWiki configuration.
  • Forward XWiki application and access logs to a centralized SIEM or data lake for retention and correlation.
  • Alert on creation of new admin-equivalent accounts or permission changes following document edit activity.

How to Mitigate CVE-2025-66474

Immediate Actions Required

  • Upgrade XWiki Rendering to version 16.10.10, 17.4.3, or 17.6.0-rc-1 or later as appropriate for your branch.
  • Audit recent edits to user profiles and documents for embedded {{/html}} and script macro sequences.
  • Restrict edit rights on the wiki to trusted users until the patch is applied.
  • Rotate credentials and review wiki content integrity if exploitation is suspected.

Patch Information

Fixes are committed in the upstream repositories. See XWiki Rendering commit 9b71a2ee and XWiki Platform commit 12b780cc. Upgrade to XWiki Rendering 16.10.10, 17.4.3, or 17.6.0-rc-1.

Workarounds

  • Temporarily remove script execution rights (Script, Programming) from non-administrative users to limit macro privileges.
  • Disable the HTML macro on instances where it is not required by editors.
  • Place the XWiki instance behind a web application firewall rule that blocks request bodies containing {{/html}} adjacent to known script macro tags until the upgrade is completed.

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechXwiki

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.68%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-95

  • CWE-94
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory

  • XWiki Jira Issue XRENDERING-693

  • XWiki Jira Issue XRENDERING-792

  • XWiki Jira Issue XRENDERING-793

  • XWiki Jira Issue XWIKI-23378
  • Related CVEs
  • CVE-2026-33229: XWiki Platform RCE Vulnerability

  • CVE-2025-24893: XWiki Platform RCE Vulnerability

  • CVE-2024-31982: XWiki Platform RCE Vulnerability

  • CVE-2025-55730: XWiki Remote Macros RCE 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