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-31382

CVE-2026-31382: Reflected XSS Vulnerability via WAF Bypass

CVE-2026-31382 is a reflected XSS flaw affecting the error_description parameter, allowing attackers to bypass WAF protections using Safari-specific payloads. This article covers technical details, impact, and mitigation.

Published: March 27, 2026

CVE-2026-31382 Overview

CVE-2026-31382 is a Reflected Cross-Site Scripting (XSS) vulnerability affecting the Gainsight Assist plugin. The vulnerability exists in the error_description parameter, which fails to properly sanitize user-supplied input before reflecting it back in HTTP responses. An attacker can exploit this flaw by crafting malicious URLs that, when visited by a victim, execute arbitrary JavaScript in the context of the vulnerable domain. Notably, this vulnerability can bypass Web Application Firewall (WAF) protections using a Safari-specific onpagereveal event handler payload.

Critical Impact

Attackers can execute arbitrary JavaScript in victim browsers, potentially stealing session tokens, performing actions on behalf of users, or redirecting users to malicious sites. The Safari-specific WAF bypass technique increases the exploitability of this vulnerability in certain environments.

Affected Products

  • Gainsight Assist Plugin (versions prior to remediation)

Discovery Timeline

  • 2026-03-20 - CVE-2026-31382 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-31382

Vulnerability Analysis

This Reflected XSS vulnerability (CWE-79) occurs when the Gainsight Assist plugin improperly handles the error_description parameter in HTTP requests. The parameter value is reflected directly into the page response without adequate input validation or output encoding, allowing attackers to inject malicious script content.

The vulnerability is particularly noteworthy due to its ability to bypass WAF protections through a Safari-specific technique. By utilizing the onpagereveal event handler—a Safari-only JavaScript event—attackers can craft payloads that evade common WAF signature detection while still achieving code execution in Safari browsers.

The attack requires user interaction (clicking a malicious link), but no authentication or special privileges are needed to exploit it. Upon successful exploitation, the attacker's JavaScript executes within the security context of the vulnerable domain, enabling session hijacking, credential theft, or further attacks against the victim.

Root Cause

The root cause is insufficient input validation and output encoding in the error_description parameter handling logic. The application fails to sanitize special characters and HTML/JavaScript content before reflecting user input back to the browser. Additionally, the WAF rules in place do not account for browser-specific event handlers like Safari's onpagereveal, creating a bypass opportunity.

Attack Vector

The attack is network-based and requires user interaction. An attacker constructs a malicious URL containing XSS payload in the error_description parameter. When a victim using Safari browser clicks the crafted link, the payload executes in their browser session. The Safari-specific onpagereveal event handler allows the payload to bypass standard WAF detection signatures that may filter common XSS vectors like onclick, onerror, or onload.

The attacker typically distributes the malicious URL through phishing emails, social media, or by embedding it in other websites. Since the vulnerability affects the error handling flow, victims may not immediately recognize the malicious nature of the request.

Detection Methods for CVE-2026-31382

Indicators of Compromise

  • Unusual URL patterns in web server logs containing error_description parameters with encoded JavaScript or HTML tags
  • Log entries showing onpagereveal event handlers in request parameters
  • Reports of unexpected JavaScript behavior or redirects from users accessing the Gainsight Assist plugin
  • Session anomalies or unauthorized actions following link clicks in Safari browsers

Detection Strategies

  • Implement log analysis rules to detect error_description parameters containing suspicious patterns such as <script>, javascript:, or event handlers like onpagereveal
  • Deploy browser-based XSS detection using Content Security Policy (CSP) violation reporting
  • Monitor for unusual referrer patterns indicating phishing campaigns distributing malicious links
  • Configure WAF rules specifically targeting Safari-specific event handlers and XSS vectors

Monitoring Recommendations

  • Enable detailed logging for all HTTP requests to endpoints handling error responses in the Gainsight Assist plugin
  • Set up alerting for CSP violation reports that may indicate XSS exploitation attempts
  • Monitor user session activity for anomalies following access to error pages
  • Track Safari browser user agent strings in conjunction with suspicious parameter values

How to Mitigate CVE-2026-31382

Immediate Actions Required

  • Apply the official remediation from Gainsight as documented in the Gainsight Community Remediation Advisory
  • Update WAF rules to include detection of Safari-specific event handlers including onpagereveal
  • Implement strict Content Security Policy headers to mitigate XSS impact
  • Educate users about the risks of clicking untrusted links, particularly those containing visible error parameters

Patch Information

Gainsight has released remediations for this vulnerability alongside CVE-2026-31381. Organizations using the Gainsight Assist plugin should consult the Gainsight Community Remediation Advisory for specific patching instructions. Additional technical context is available in the Rapid7 Blog.

Workarounds

  • Implement server-side input validation to strip or encode special characters from the error_description parameter
  • Deploy a strict Content Security Policy that blocks inline script execution: script-src 'self'
  • Configure WAF rules to block requests containing onpagereveal and other browser-specific event handlers in URL parameters
  • Consider temporarily disabling the affected error handling functionality if patching cannot be immediately applied

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechSafari

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • Gainsight Community Remediation Advisory

  • Rapid7 Blog on CVE-2026-31381/82
  • Related CVEs
  • CVE-2026-28871: Apple Safari XSS Vulnerability

  • CVE-2026-20608: Apple Safari DoS Vulnerability

  • CVE-2026-20656: Apple Safari History Disclosure Flaw

  • CVE-2024-44308: Debian Linux WebKit RCE 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