/

CVE-2026-81029

Severity:

HIGH RISK

(8.1)

Open Redirect (CWE-601) in OpenMetadata SSO Handlers

CVE-2026-81029

Deferred

Vulnerability type

Category:

Open Redirect

CWE:

CWE-601

Impact:

Authentication Token Disclosure and Account Takeover

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenMetadata accepts a caller-supplied post-authentication redirect destination and appends a newly issued identity token to that destination. If a user follows a crafted link and completes authentication, the token and identity details may be sent to an attacker-controlled site, enabling account takeover.

Affected context

The vulnerability occurs in OpenMetadata SAML, OIDC, and OAuth2 login flows when a callback or redirect parameter is accepted from the request and stored for later use without being matched against an approved destination. The assertion consumer or identity handler then constructs a redirect containing the issued token and user information. Risk depends on users following attacker-controlled links and completing authentication through an affected flow.

Exploit preconditions

  • Attack surface: SAML, OIDC, or OAuth2 post-authentication redirect handling
  • Required access: Ability to send or induce a victim to follow a crafted authentication link; no prior OpenMetadata account access may be required
  • Trigger point: Successful completion of the login flow after a caller-supplied redirect parameter has been stored
  • Why exploitation is possible: The server trusts an unvalidated destination and includes a freshly issued token in the resulting redirect

Why this happens

The underlying bug is an open redirect combined with sensitive-token disclosure. A caller-controlled redirect value is treated as a trusted destination rather than being constrained to configured or registered endpoints. The authentication handler subsequently formats that value into a URL containing the issued JWT or identity token and user attributes, mapping to CWE-601: URL Redirection to Untrusted Site.

Potential impact

  • An attacker-controlled site may receive a valid authentication token
  • The attacker could use the token to make API requests as the victim
  • A victim's OpenMetadata account could be taken over
  • User identity details such as email address and name may be disclosed
  • Applications or data accessible through the compromised account could be modified or exposed

General mitigation guidance

Mitigation generally focuses on removing caller control over authentication redirect destinations and preventing tokens from appearing in browser-visible redirect URLs.

Common defensive patterns include:

  • Allowing only server-selected, pre-registered redirect destinations
  • Comparing redirect targets against an exact allowlist rather than accepting arbitrary URLs
  • Using a secure default destination when a callback value is absent or invalid
  • Keeping access tokens out of query strings and other redirect-carried locations
  • Binding authorization responses to the initiating client and request context
  • Applying least privilege and short token lifetimes to reduce the impact of token exposure
  • Treating redirect parameters as untrusted input throughout the full authentication flow

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis rules that trace request parameters into redirect responses
  • Code review checks for redirect construction involving tokens, session values, or identity claims
  • Tests that submit external, scheme-relative, encoded, and unexpected redirect destinations
  • Policy enforcement requiring exact redirect-URI allowlists for SSO integrations
  • Runtime monitoring for authentication responses that redirect to unregistered domains
  • Automated security review tools that flag unvalidated redirect parameters and sensitive data in URLs

Sources

SourceLink
github.comgithub.com/open-metadata/OpenMetadata
github.comgithub.com/open-metadata/OpenMetadata/blob/1.12.1/openmetadata-service/src/main/java/org/openmetadata/service/security/saml/SamlLoginServlet.java
github.comgithub.com/open-metadata/OpenMetadata/issues/29662
github.comgithub.com/open-metadata/OpenMetadata/security/advisories/GHSA-3f34-r7gw-5f28
vulncheck.comvulncheck.com/advisories/openmetadata-before-2.0.0-jwt-disclosure-via-unvalidated-saml-and-oidc-redirect-uri

Frequently asked

questions

Yes, exploitation may be possible remotely when an attacker can cause a user to follow a crafted authentication link and the affected login flow accepts the supplied redirect destination.

The attacker generally needs to deliver or induce use of a malicious link. They do not necessarily need an existing OpenMetadata account, while the victim must complete authentication for the token to be issued.

Use only exact, pre-registered redirect destinations selected by the server, reject unexpected values, and avoid placing authentication tokens in redirect URLs.

Treat all callback parameters as untrusted, enforce redirect-URI policies in code and configuration, test every supported identity-provider flow, and monitor for redirects to unapproved domains.

Find out what's already
exploitable in your codebase.