CVE-2026-33758

OpenBao has Reflected XSS in its OIDC authentication error message

Published Mar 27, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
OpenBao is an open source identity-based secrets management system. Prior to version 2.5.2, 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. The `error_description` parameter has been replaced with a static error message in v2.5.2. The vulnerability can be mitigated by removing any roles with `callback_mode` set to `direct`.

Analysis

AI-generated

Technical impact

The vulnerability arises from an unsanitized error_description parameter displayed on the OIDC authentication error page, which allows attackers to inject arbitrary script that runs in the victim's browser. When the script executes, it can read and exfiltrate the authentication token that the victim uses in the OpenBao web interface, effectively compromising the confidentiality of the victim’s session and enabling unauthorized access to the victim’s secrets.

Affected Systems

OpenBao installations with OIDC/JWT authentication enabled and any role configured with callback_mode set to direct are affected. The flaw exists in all releases prior to version 2.5.2; the fix is implemented in v2.5.2 through a static error message that removes the vulnerable parameter.

Risk and Exploitability

The CVSS score of 9.4 indicates a high severity. The EPSS score is less than 1%, and the vulnerability is not listed in CISA’s KEV catalog, suggesting a currently low exploitation likelihood. Attackers can exploit the reflected XSS by crafting a malicious error_description value and tricking a victim into visiting the resulting error page, causing the attacker’s script to run in the victim’s browser and steal the authentication token.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the OpenBao v2.5.2 or later update.
  • Remove all OIDC roles that have callback_mode set to direct.
  • Verify that no such roles remain in the configuration.

Generated by OpenCVE AI on March 30, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cpj3-3r2f-xj59 OpenBao has Reflected XSS in its OIDC authentication error message
History
Type Values Removed Values Added
CPEs cpe:2.3:a:openbao:openbao:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L'}

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Openbao
Openbao openbao
Vendors & Products Openbao
Openbao openbao
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description OpenBao is an open source identity-based secrets management system. Prior to version 2.5.2, 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. The `error_description` parameter has been replaced with a static error message in v2.5.2. The vulnerability can be mitigated by removing any roles with `callback_mode` set to `direct`.
Title OpenBao has Reflected XSS in its OIDC authentication error message
Weaknesses CWE-116
CWE-20
CWE-79
References
Metrics cvssV4_0

{'score': 9.4, 'vector': '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'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-20

    Improper Input Validation

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:06 AM
Reserved
Mar 23, 2026, 6:30 PM
Status
Modified
Published
Mar 27, 2026, 3:16 PM
Modified
Jul 15, 2026, 2:20 AM
Severity
Important
Public date
Mar 27, 2026, 2:12 PM