Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-40105

CVE-2026-40105: XWiki Platform XSS Vulnerability

CVE-2026-40105 is a reflected cross-site scripting flaw in XWiki Platform that allows attackers to execute JavaScript in users' browsers. This post covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-40105 Overview

CVE-2026-40105 is a reflected cross-site scripting (XSS) vulnerability in XWiki Platform, a generic wiki platform offering runtime services for applications built on top of it. The vulnerability exists in the comparison view between revisions of a page, allowing attackers to execute arbitrary JavaScript code in a victim's browser. This flaw affects multiple version branches including 10.4-rc-1 through 16.10.15, 17.0.0-rc-1 through 17.4.7, and 17.5.0-rc-1 through 17.10.0.

Critical Impact

If an administrator views a maliciously crafted comparison URL, attackers can compromise the confidentiality, integrity, and availability of the entire XWiki instance through the admin's elevated privileges.

Affected Products

  • XWiki Platform versions 10.4-rc-1 through 16.10.15
  • XWiki Platform versions 17.0.0-rc-1 through 17.4.7
  • XWiki Platform versions 17.5.0-rc-1 through 17.10.0

Discovery Timeline

  • 2026-04-15 - CVE CVE-2026-40105 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2026-40105

Vulnerability Analysis

This reflected XSS vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page) resides in the changesdoc.vm Velocity template file. The flaw occurs when URL parameters for revision comparison (rev1 and rev2) are directly interpolated into generated URLs without proper encoding. When a user accesses a revision comparison view with specially crafted parameters, the malicious payload is reflected back and executed in the context of the user's authenticated session.

The vulnerability is particularly dangerous when targeting administrator users. XWiki administrators possess extensive privileges including the ability to execute server-side code, modify system configurations, manage user accounts, and access sensitive data. An attacker successfully exploiting this vulnerability against an admin could effectively gain full control over the XWiki instance.

Root Cause

The root cause is improper output encoding in the changesdoc.vm template. The vulnerable code directly concatenates user-controlled parameters (previousOrigdocVersion, nextOrigdocVersion, previousNewdocVersion, nextNewdocVersion) into URL query strings using string interpolation rather than proper URL encoding. This allows an attacker to inject script content that breaks out of the URL context and executes in the browser.

Attack Vector

The attack is network-based and requires user interaction. An attacker crafts a malicious URL containing JavaScript payloads in the revision version parameters. The attacker then tricks a victim (ideally an administrator) into clicking this link, perhaps through phishing or social engineering. When the victim accesses the comparison view, the malicious JavaScript executes in their browser with their session privileges.

text
// Security patch from changesdoc.vm template
// Source: https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c

## VULNERABLE CODE (before patch):
#set ($changesLink = ${xwiki.getURL($tdoc, 'view', "viewer=changes&rev1=${previousOrigdocVersion}&rev2=${rev2}")})

## FIXED CODE (after patch):
#set ($changesLink = ${xwiki.getURL($tdoc, 'view',
    $escapetool.url({'viewer': 'changes', 'rev1': $previousOrigdocVersion, 'rev2': $rev2}))})

The fix replaces direct string interpolation with the $escapetool.url() method, which properly URL-encodes all parameter values, preventing script injection through these parameters.

Detection Methods for CVE-2026-40105

Indicators of Compromise

  • Unusual or encoded JavaScript in URL parameters targeting /xwiki/bin/view/ paths with viewer=changes parameter
  • Web server logs showing requests to revision comparison views with suspicious rev1 or rev2 parameter values containing script tags or event handlers
  • Browser console errors or unexpected script executions when accessing page comparison views

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing script tags or JavaScript event handlers in URL parameters
  • Monitor server access logs for anomalous revision comparison requests with encoded or obfuscated payloads
  • Deploy Content Security Policy (CSP) headers to mitigate the impact of successful XSS attacks by restricting script execution sources
  • Use browser-based XSS auditor tools during security testing to identify reflected content

Monitoring Recommendations

  • Configure alerting on access log patterns matching XWiki comparison view URLs with abnormally long or encoded parameters
  • Monitor for failed or unusual administrative actions that may indicate a compromised admin session
  • Review authentication logs for administrator accounts accessing XWiki from unexpected IP addresses or locations

How to Mitigate CVE-2026-40105

Immediate Actions Required

  • Update XWiki Platform to version 16.10.16, 17.4.8, or 17.10.1 or later immediately
  • Review web server access logs for potential exploitation attempts targeting the comparison view functionality
  • Advise administrators to avoid clicking untrusted links while logged into XWiki
  • Implement Content Security Policy headers to reduce XSS impact as a defense-in-depth measure

Patch Information

XWiki has released patched versions addressing this vulnerability. Users should upgrade to version 16.10.16, 17.4.8, or 17.10.1 or later depending on their version branch. The security fix is documented in commit 3c8a2ec985641367015c2db937574fcd360c788c. For additional details, refer to the GitHub Security Advisory and XWiki Jira Issue XWIKI-23472.

Workarounds

  • If immediate upgrade is not possible, manually apply the patch to templates/changesdoc.vm in the deployed WAR file
  • Replace direct string interpolation with $escapetool.url() method calls as shown in the GitHub Commit
  • Restrict access to XWiki revision comparison functionality at the network layer until patching is complete
bash
# Workaround: Manual patch application
# Navigate to your XWiki deployment directory
cd /path/to/xwiki/webapp/templates/

# Backup the original file
cp changesdoc.vm changesdoc.vm.backup

# Apply the patch manually by replacing vulnerable URL generation
# Change lines using direct string interpolation like:
#   "viewer=changes&rev1=${previousOrigdocVersion}&rev2=${rev2}"
# To use escapetool.url() method:
#   $escapetool.url({'viewer': 'changes', 'rev1': $previousOrigdocVersion, 'rev2': $rev2})

# Restart XWiki after applying the patch

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechXwiki

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/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
  • AvailabilityNone
  • CWE References
  • CWE-80
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory

  • XWiki Jira Issue XWIKI-23472
  • Related CVEs
  • CVE-2025-66024: XWiki Blog Application XSS Vulnerability

  • CVE-2026-26000: XWiki Platform XSS Vulnerability

  • CVE-2026-24128: XWiki Platform Reflected XSS Vulnerability

  • CVE-2025-46558: XWiki Markdown Syntax XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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