Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-20368 Overview
CVE-2025-20368 is a stored cross-site scripting (XSS) vulnerability [CWE-79] in Splunk Enterprise and Splunk Cloud Platform. A low-privileged user without the admin or power Splunk roles can craft a malicious payload delivered through error messages and job inspection details of a saved search. When another user views the affected content, the browser executes attacker-controlled JavaScript in that user's session context. The flaw affects Splunk Enterprise versions below 9.4.4, 9.3.6, and 9.2.8, and Splunk Cloud Platform versions below 9.3.2411.108, 9.3.2408.118, and 9.2.2406.123.
Critical Impact
A low-privileged Splunk user can execute arbitrary JavaScript in the browser of another user, including higher-privileged administrators, enabling session abuse and unauthorized actions in the Splunk web interface.
Affected Products
- Splunk Enterprise versions below 9.4.4, 9.3.6, and 9.2.8
- Splunk Cloud Platform versions below 9.3.2411.108 and 9.3.2408.118
- Splunk Cloud Platform versions below 9.2.2406.123
Discovery Timeline
- 2025-10-01 - CVE-2025-20368 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-20368
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the Splunk web interface. Saved searches surface diagnostic content through two channels that render user-influenced data: error messages and job inspection details. The affected rendering paths do not adequately encode or sanitize fields that originate from search definitions and runtime output. An attacker holding a low-privileged account can embed JavaScript into a saved search that triggers error conditions or populates inspection metadata with malicious markup.
When a second user, including one with the admin or power role, views the error message or opens the job inspector for the saved search, the payload executes in that user's browser. Because the scope changes to the victim's authenticated session (reflected by the CVSS scope-changed component), the attacker-controlled script can perform actions on behalf of the victim within the Splunk web application, read page content, and interact with authenticated endpoints. User interaction is required: a victim must open the affected view.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79] in the components that render saved search error output and job inspection details. User-supplied content from search definitions and resulting job metadata is reflected into the DOM without sufficient output encoding, enabling script execution.
Attack Vector
Exploitation requires network access to the Splunk web interface and low-privileged authenticated access. The attacker creates or edits a saved search with a crafted payload that is reflected through an error message or exposed via job inspection details. When another user navigates to the affected view, the browser interprets the payload as executable script. Refer to the Splunk Security Advisory SVD-2025-1003 for additional vendor-published technical details.
Detection Methods for CVE-2025-20368
Indicators of Compromise
- Saved searches owned by non-admin, non-power users that contain HTML tags, <script> fragments, event handlers (for example onerror=, onload=), or javascript: URIs in search strings, titles, or descriptions.
- Splunk audit log entries (audit.log) showing saved search creation or modification by low-privileged accounts followed by views of the resulting job inspector by elevated users.
- Browser console errors or unexpected outbound requests originating from the Splunk Web UI following access to a saved search job inspector.
Detection Strategies
- Query Splunk internal indexes for saved search objects whose definitions contain suspicious markup: index=_audit action="edit_savedsearch" | search search_string="*<script*" OR search_string="*onerror=*".
- Correlate edit_savedsearch and view_savedsearch_job_inspector events across different users to identify low-privilege authors whose saved searches are being opened by admin or power role members.
- Review web access logs for unusual requests to Splunk REST endpoints shortly after a user opens a job inspector view.
Monitoring Recommendations
- Continuously monitor saved search creation and modification events from non-privileged roles.
- Alert on administrative API calls initiated from browser sessions immediately following job inspector access.
- Track role assignments to ensure the principle of least privilege is maintained for Splunk users who can create saved searches.
How to Mitigate CVE-2025-20368
Immediate Actions Required
- Upgrade Splunk Enterprise to version 9.4.4, 9.3.6, 9.2.8, or later as applicable to your deployment branch.
- Confirm Splunk Cloud Platform instances are running 9.3.2411.108, 9.3.2408.118, 9.2.2406.123, or later. Splunk operates Cloud Platform upgrades, but customers should verify tenant versions.
- Audit existing saved searches for suspicious content and remove or sanitize any that contain embedded markup.
- Review assignment of saved search creation privileges to low-privileged roles.
Patch Information
Splunk has released fixed versions addressing CVE-2025-20368. For Splunk Enterprise, upgrade to 9.4.4, 9.3.6, or 9.2.8. For Splunk Cloud Platform, the fixed versions are 9.3.2411.108, 9.3.2408.118, and 9.2.2406.123. Full remediation details are available in the Splunk Security Advisory SVD-2025-1003.
Workarounds
- Restrict the ability to create or edit saved searches to trusted roles until patches are applied.
- Educate administrators and users with elevated roles to avoid opening job inspector views for saved searches owned by untrusted accounts.
- Apply strict Content Security Policy (CSP) headers at any reverse proxy fronting Splunk Web to reduce the impact of script execution where feasible.
# Verify installed Splunk Enterprise version against fixed releases
$SPLUNK_HOME/bin/splunk version
# List saved searches and owners for review
$SPLUNK_HOME/bin/splunk list saved-search -auth admin:<password>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

