Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L) reflects a network-accessible attack requiring only user interaction and no authentication, with low attack complexity. However, real-world risk is constrained by several factors: (1) the vulnerability requires convincing a user to click a malicious link, which reduces the likelihood of widespread automated exploitation; (2) the impact is limited to integrity and availability (not confidentiality), typically affecting user sessions rather than server compromise; (3) no data indicates this is tracked in the KEV (Known Exploited Vulnerabilities) catalog or has an associated public proof-of-concept, suggesting lower immediate threat maturity. The WAF bypass capability using Safari-specific payloads is noteworthy and increases the sophistication required to defend against this, but Rapid7's publication and vendor patch availability suggest this has been responsibly disclosed. EPSS score is not provided in the intelligence, but the combination of low real-world exploitation likelihood, user interaction requirement, and limited impact suggests this is a medium-priority patching issue rather than a critical emergency—organizations should patch during normal maintenance windows but should not deprioritize operational stability to address it immediately. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL containing a Safari-specific onpagereveal XSS payload embedded in the error_description parameter (e.g., https://gainsight.example.com/error?error_description=<img src=x onerror=alert('XSS')>) and sends it to victims via phishing email or social engineering. When a victim (using Safari) clicks the link and the application renders the error message without sanitization, the onpagereveal handler is triggered, executing the attacker's JavaScript in the context of the victim's authenticated session, allowing credential theft, malware injection, or unauthorized actions on behalf of the victim. The attacker leverages the Safari-specific event handler to bypass the organization's WAF rules, which typically filter common XSS payloads but may not recognize emerging or less common browser-specific handlers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
A Reflected Cross-Site Scripting (XSS) vulnerability exists in the error_description parameter of Gainsight Assist, allowing unauthenticated attackers to inject malicious JavaScript payloads that execute in victims' browsers. The vulnerability is particularly dangerous because attackers can bypass the application's Web Application Firewall (WAF) using Safari-specific event handlers such as onpagereveal, which are not typically filtered by standard XSS protections. While the CVSS score of 6.1 indicates moderate severity with limited direct impact (integrity and availability degradation rather than confidentiality breach), the attack requires minimal technical complexity and no special privileges, making it exploitable by any attacker who can craft a malicious URL and socially engineer a victim into clicking it.
RemediationAI
Apply the security patch released by Gainsight Assist as described in the Rapid7 advisory (https://www.rapid7.com/blog/post/ve-cve-2026-31381-cve-2026-31382-gainsight-assist-information-disclosure-xss-fixed/); the advisory indicates a fix is available and should be deployed to all affected instances. As interim or complementary controls pending patch deployment, implement a Web Application Firewall (WAF) rule that blocks requests containing event handler keywords (including Safari-specific handlers such as onpagereveal, onload, onerror) in the error_description parameter, enforce a strict Content Security Policy (CSP) header that disallows inline script execution, and ensure all user-supplied error messages are HTML-encoded before rendering. Additionally, educate users not to click on suspicious links sent via email or messaging, and monitor for indicators of XSS exploitation such as unusual session activity or unauthorized data access from users' accounts.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation, also known as Cross-site Scripting), a classic injection flaw where user-supplied input in the error_description parameter is reflected back to the user's browser without proper sanitization or encoding. The attack surface is broadened by browser-specific event handler implementations; Safari interprets onpagereveal as a valid event attribute, whereas other browsers may ignore it or handle it differently. This differential behavior is a form of inconsistent security validation across rendering engines. Gainsight Assist (affected versions per CPE cpe:2.3:a:gainsight:gainsight_assist:*:*:*:*:*:*:*:*) does not adequately filter or HTML-encode special characters and event handler names in error messages, allowing JavaScript code to be injected via parameters that are then rendered in HTTP responses without Content Security Policy (CSP) or output encoding protections.
Know when Gainsight Assist gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The error_description parameter is vulnerable to Reflected XSS. An attacker can bypass the domain's WAF using a Safari-specific onpagereveal payload.
Executive ViewAI
Organizations using error_description parameter should be aware of moderate risk from CVE-2026-31382, a cross-site scripting vulnerability rated CVSS 6.1. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-13686
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB