Skip to main content
Vulnerability Database/CVE-2026-112212

CVE-2026-112212: GitLab OAuth/OIDC Cache Poisoning SSRF

CVE-2026-112212 is an SSRF flaw in GitLab CE/EE that enables unauthenticated attackers to poison OAuth/OIDC discovery caches and redirect flows to malicious servers. This article covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112212 Overview

CVE-2026-112212 is a cache poisoning vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE). The flaw lets an unauthenticated attacker poison a shared cache's OAuth/OpenID Connect (OIDC) discovery document. Once poisoned, GitLab constructs endpoint URLs from attacker-supplied values and redirects certain authentication flows to an externally controlled server. The root cause is improper trust of user-supplied input when building cached discovery responses, categorized under [CWE-444] HTTP Request/Response Smuggling.

Critical Impact

An unauthenticated attacker can redirect OAuth/OIDC authentication flows to an attacker-controlled endpoint, enabling credential theft and session hijacking against affected GitLab instances.

Affected Products

  • GitLab CE/EE versions 18.3 through 19.3.5
  • GitLab CE/EE versions 19.4 through 19.4.2
  • GitLab CE/EE version 19.5.0

Discovery Timeline

  • 2026-10-22 - CVE-2026-112212 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-112212

Vulnerability Analysis

The vulnerability resides in GitLab's handling of OAuth/OIDC discovery documents. GitLab fetches and caches the OpenID Connect discovery metadata, which defines authorization, token, and user info endpoint URLs. When constructing cached entries, the application trusts user-supplied values without proper validation. An unauthenticated attacker can submit crafted input that pollutes the shared cache. Subsequent authentication requests served from the poisoned cache point users to an attacker-controlled identity provider endpoint.

Exploitation requires user interaction and specific preconditions, which raises attack complexity. Successful exploitation changes scope by crossing the trust boundary from the GitLab instance to downstream authentication consumers. The attacker gains high confidentiality impact through intercepted authentication artifacts, with limited integrity and availability impact.

Root Cause

The underlying defect is improper neutralization of user-supplied values during URL construction for cached OIDC discovery responses. GitLab accepts attacker-influenced input into fields that populate endpoint URLs, then stores the resulting document in a shared cache without integrity controls. Any authentication flow that reads the cached discovery data inherits the poisoned endpoints.

Attack Vector

The attack is remote and unauthenticated over the network. An attacker submits crafted requests that cause GitLab to cache a malicious OAuth/OIDC discovery document. Victim users initiating a login flow are redirected to the attacker's endpoint, which can harvest authorization codes, tokens, or credentials. No synthetic exploitation code is published; refer to the vendor advisory for additional technical context.

Detection Methods for CVE-2026-112212

Indicators of Compromise

  • Unexpected redirects during OAuth or OIDC login flows to external domains not matching the configured identity provider.
  • Cached OIDC discovery documents containing authorization_endpoint, token_endpoint, or userinfo_endpoint values pointing to unknown hosts.
  • Anomalous outbound HTTP requests from GitLab worker processes to domains outside the configured identity provider.

Detection Strategies

  • Audit GitLab's Rails cache store for OIDC discovery entries and compare endpoint URLs against the expected identity provider configuration.
  • Review web server and reverse proxy logs for unauthenticated requests that trigger discovery document fetches or cache writes.
  • Correlate login failure spikes with recent cache refresh events to detect poisoning attempts.

Monitoring Recommendations

  • Enable verbose authentication logging on GitLab and forward logs to a centralized SIEM for pattern analysis.
  • Alert on new or changed OAuth/OIDC endpoint hostnames observed in GitLab authentication traffic.
  • Monitor egress traffic from GitLab application servers for connections to domains outside the approved identity provider allowlist.

How to Mitigate CVE-2026-112212

Immediate Actions Required

  • Upgrade GitLab CE/EE to version 19.3.6, 19.4.3, or 19.5.1 or later without delay.
  • Flush the shared Rails cache after patching to purge any poisoned discovery documents.
  • Rotate OAuth client secrets and force re-authentication for users who logged in during the exposure window.

Patch Information

GitLab remediated the issue in versions 19.3.6, 19.4.3, and 19.5.1. Review the GitLab Patch Release 19.5.1 announcement and the tracking item at GitLab Work Item #627499 for complete details and additional patched branches.

Workarounds

  • Restrict network egress from GitLab application servers to only the configured identity provider domains.
  • Disable external OAuth/OIDC providers temporarily if patching cannot be performed immediately.
  • Enforce strict allowlisting of acceptable discovery document hostnames at the reverse proxy or web application firewall layer.
bash
# Verify GitLab version after upgrade
sudo gitlab-rake gitlab:env:info | grep -i "GitLab information" -A 10

# Clear the Rails shared cache to purge poisoned OIDC discovery entries
sudo gitlab-rake cache:clear

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.