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-2023-35161

CVE-2023-35161: XWiki Platform XSS Vulnerability

CVE-2023-35161 is a cross-site scripting flaw in XWiki Platform that allows attackers to inject malicious JavaScript via forged URLs. This article covers the technical details, affected versions, and mitigation steps.

Published: February 4, 2026

CVE-2023-35161 Overview

CVE-2023-35161 is a Cross-Site Scripting (XSS) vulnerability in XWiki Platform, a generic wiki platform offering runtime services for applications built on top of it. Attackers can forge a malicious URL with a JavaScript payload that injects script content into the page when processed by the DeleteApplication component. The vulnerability specifically affects the xredirect parameter handling in the AppWithinMinutes DeleteApplication page.

Critical Impact

Unauthenticated attackers can craft malicious URLs to execute arbitrary JavaScript in the context of authenticated user sessions, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of victims.

Affected Products

  • XWiki Platform versions 6.2-milestone-1 through 14.10.4
  • XWiki Platform versions 15.0-rc-1 through 15.0
  • XWiki xwiki (all affected versions per CPE data)

Discovery Timeline

  • 2023-06-23 - CVE CVE-2023-35161 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-35161

Vulnerability Analysis

This reflected XSS vulnerability exists in the XWiki Platform's DeleteApplication page within the AppWithinMinutes module. The vulnerability allows attackers to inject JavaScript code through a carefully crafted URL that exploits the xredirect parameter. When a user clicks on a malicious link or is redirected to such a URL, the JavaScript payload executes within the user's browser session, potentially compromising sensitive data or performing unauthorized actions.

The vulnerability requires user interaction—specifically, a victim must be tricked into clicking or navigating to the malicious URL. When successfully exploited, the attack can affect other users' sessions due to the changed scope context, enabling cross-origin attacks against other domains or subdomains within the XWiki deployment.

Root Cause

The root cause is improper input validation and sanitization of the xredirect parameter in the DeleteApplication template. Prior to the patch, the application directly used the user-supplied redirect URL without validating that it was a safe, legitimate URL. This allowed the injection of javascript: protocol URLs, which execute JavaScript when processed by the browser.

The vulnerable code directly assigned the request parameter to the cancel URL without any sanitization:

text
#set ($cancelURL = $request.xredirect)
#set ($confirmParams.xredirect = $cancelURL)

Attack Vector

The attack vector is network-based and requires user interaction. An attacker constructs a malicious URL targeting the DeleteApplication endpoint with a JavaScript payload in the xredirect parameter. The exploitation path is as follows:

xwiki/bin/view/AppWithinMinutes/DeleteApplication?appName=Menu&resolve=true&xredirect=javascript:alert(document.domain)

When a victim with an active XWiki session clicks this link, the JavaScript payload executes in their browser context. Attackers can replace the simple alert() with more sophisticated payloads to steal session cookies, perform CSRF attacks, or exfiltrate sensitive data.

The following patch demonstrates how XWiki addressed this vulnerability by implementing URL sanitization:

text
     'form_token': $services.csrf.token
   })
   #if ("$!request.xredirect" != '')
-    #set ($cancelURL = $request.xredirect)
-    #set ($confirmParams.xredirect = $cancelURL)
+    #getSanitizedURLAttributeValue('a','href',$request.xredirect,$doc.getURL(),$cancelURL)
+    ## We don't sanitize those parameters as the sanitation will be handled server side.
+    #set ($confirmParams.xredirect = $request.xredirect)
   #end
   #set ($confirmURL = $doc.getURL($xcontext.action, $escapetool.url($confirmParams)))
   {{html}}

Source: GitHub Commit for XWiki

Detection Methods for CVE-2023-35161

Indicators of Compromise

  • Web server access logs containing requests to /AppWithinMinutes/DeleteApplication with xredirect=javascript: patterns
  • URL-encoded variations of javascript: protocol in xredirect parameters (e.g., %6a%61%76%61%73%63%72%69%70%74:)
  • Unusual outbound connections or data exfiltration following user access to XWiki pages
  • Reports from users experiencing unexpected browser behavior or redirects when using XWiki

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing javascript: in URL parameters
  • Configure intrusion detection systems (IDS) to alert on XSS payload patterns targeting XWiki endpoints
  • Enable detailed access logging on XWiki servers and monitor for suspicious parameter patterns in the AppWithinMinutes module
  • Deploy browser-based XSS auditors and Content Security Policy (CSP) headers to detect and prevent script execution from untrusted sources

Monitoring Recommendations

  • Review web server logs regularly for requests to /AppWithinMinutes/DeleteApplication containing suspicious xredirect values
  • Monitor security information and event management (SIEM) systems for patterns indicating XSS exploitation attempts
  • Establish baseline behavior for XWiki user sessions and alert on anomalous activities that may indicate session compromise
  • Implement real-time alerting for any HTTP requests containing javascript: protocol in query parameters

How to Mitigate CVE-2023-35161

Immediate Actions Required

  • Upgrade XWiki Platform to version 14.10.5 or 15.1-rc-1 or later immediately
  • If immediate patching is not possible, restrict access to the AppWithinMinutes DeleteApplication page
  • Implement Content Security Policy (CSP) headers to mitigate the impact of XSS attacks
  • Educate users about the risks of clicking on suspicious links, especially those targeting XWiki endpoints

Patch Information

XWiki has released patches addressing this vulnerability. The fix implements proper URL sanitization using the #getSanitizedURLAttributeValue macro to validate redirect URLs before use. Organizations should upgrade to XWiki Platform version 14.10.5 or 15.1-rc-1 or later.

For detailed patch information, refer to:

  • GitHub Commit for XWiki
  • GitHub Security Advisory GHSA-4xm7
  • XWiki Issue XWIKI-20583
  • XWiki Issue XWIKI-20614

Workarounds

  • Deploy a reverse proxy or WAF rule to filter requests containing javascript: in the xredirect parameter
  • Temporarily disable or restrict access to the AppWithinMinutes module until patching is complete
  • Implement strict Content Security Policy headers to prevent inline JavaScript execution
bash
# Example Apache configuration to block malicious xredirect parameters
# Add to XWiki virtual host configuration
RewriteEngine On
RewriteCond %{QUERY_STRING} xredirect=.*javascript: [NC]
RewriteRule ^/xwiki/bin/view/AppWithinMinutes/DeleteApplication - [F,L]

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.1

  • EPSS Probability12.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-87

  • CWE-79
  • Vendor Resources
  • GitHub Commit for XWiki

  • GitHub Security Advisory GHSA-4xm7

  • XWiki Issue XWIKI-20583

  • XWiki Issue XWIKI-20614
  • Related CVEs
  • CVE-2026-40105: XWiki Platform XSS Vulnerability

  • CVE-2025-66024: XWiki Blog Application XSS Vulnerability

  • CVE-2026-26000: XWiki Platform XSS Vulnerability

  • CVE-2026-24128: XWiki Platform Reflected 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