Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft OIDC/JWT authentication request with malicious error_description
-
ExploitVictim clicks authentication failure link
-
ExecutionXSS payload executes in victim's browser
-
ImpactAttacker steals Web UI authentication token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | OpenBao with OIDC/JWT authentication method enabled and at least one role configured with |
| Impact | Authentication requirements not confirmed from available data (CVSS vector not provided). The vulnerability enables session hijacking in the Web UI, representing a significant authentication bypass risk. However, exploitation requires social engineering to trick authenticated users into clicking a crafted link while logged into the OpenBao Web UI, and the vulnerability only affects installations with the specific callback_mode=direct configuration enabled. No EPSS score or KEV listing indicates limited observed exploitation activity. Real-world risk is moderate: while the technical impact is high (full token compromise), the attack requires both specific configuration conditions and user interaction, reducing the attack surface compared to unauthenticated remote code execution vulnerabilities. Organizations using OpenBao with OIDC/JWT authentication should prioritize patching, especially if callback_mode=direct is deployed in production environments accessible to untrusted users. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL to the OpenBao Web UI's OIDC authentication callback endpoint, injecting JavaScript into the error_description parameter. The attacker distributes this link via phishing email or social engineering, targeting authenticated OpenBao users. When a victim clicks the link while logged into OpenBao with an active session, the malicious script executes in the context of the OpenBao Web UI, capturing the victim's authentication token and exfiltrating it to the attacker's controlled server, granting full access to secrets and operations available to that user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 26, 2026
Cross-site scripting in OpenBao's OIDC/JWT authentication method allows theft of Web UI session tokens when roles are configured with callback_mode=direct. Attackers exploit the unsanitized error_description parameter on failed authentication pages to inject malicious scripts that execute in victims' browsers, granting access to authentication tokens. The vulnerability affects OpenBao installations prior to v2.5.2 and has no public exploit identified at time of analysis, though the technical implementation details are publicly documented in the vendor advisory.
RemediationAI
Upgrade OpenBao to version 2.5.2 or later, which replaces the vulnerable error_description parameter with a static error message (see release notes at https://github.com/openbao/openbao/releases/tag/v2.5.2 and fix commit at https://github.com/openbao/openbao/commit/6e2b2dd84f0e47cebc90d6e79609dd5274732662). For environments where immediate patching is not feasible, disable or reconfigure any OIDC/JWT authentication roles that have callback_mode set to direct, effectively eliminating the vulnerable code path. Review authentication role configurations using the OpenBao CLI or API to identify affected roles and migrate them to alternative callback modes. Additional defense-in-depth measures include implementing Content-Security-Policy headers to restrict inline script execution in the Web UI.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenBao is a Go-based secrets management platform forked from HashiCorp Vault. The vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page) exists in the OIDC/JWT authentication method's error handling flow. When authentication fails, the error_description parameter is reflected in the HTML response without proper sanitization or encoding. This classic reflected XSS vector specifically manifests when authentication roles use callback_mode=direct, which processes OAuth/OIDC callback responses directly in the browser rather than through a server-side intermediary. The affected component is identified via CPE as pkg:go/github.com_openbao_openbao, indicating the vulnerability resides in the core OpenBao Go package distributed through GitHub.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from Vendor (https://github.com/openbao/openbao).
CVSS VectorVendor: https://github.com/openbao/openbao
Lifecycle Timeline
2DescriptionCVE.org
Impact
OpenBao installations that have an OIDC/JWT authentication method enabled and a role with callback_mode=direct configured are vulnerable to XSS via the error_description parameter on the page for a failed authentication.
This allows an attacker access to the token used in the Web UI by a victim.
Patches
The error_description parameter has been replaced with a static error message in v2.5.2
Workarounds
The vulnerability can be mitigated by removing any roles with callback_mode set to direct.
Executive ViewAI
OpenBao installations using OIDC/JWT authentication with direct callback mode are vulnerable to session token theft through cross-site scripting attacks on failed login pages. An attacker can inject malicious scripts that execute in users' browsers and steal Web UI session tokens, granting unauthorized access to the platform. Organizations running OpenBao versions prior to v2.5.2 face immediate risk of credential compromise and unauthorized administrative access.
Apply vendor patch. Until patching is completed, mitigations include: (1) disable OIDC/JWT authentication with callback_mode=direct if operationally feasible; (2) implement Web Application Firewall rules to sanitize error_description parameters on authentication endpoints; (3) restrict Web UI access to trusted networks via network segmentation; (4) enable and monitor session token audit logs for unauthorized use.
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.
Affected Products (CPE)CVE.org
Related Vulnerabilities in OpenBao OIDC Authentication Bypass
View all 2Same weakness CWE-80 – Basic XSS
View allVendor StatusVendor
SUSE
| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB