Bug 2483252 (CVE-2026-49331)

Summary: CVE-2026-49331 openshift/oauth-proxy: openshift/oauth-proxy: unauthenticated identity header injection on whitelisted paths
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in openshift/oauth-proxy. On paths configured to bypass authentication (skip-auth-regex), the proxy forwards client-supplied identity headers (X-Forwarded-User, X-Forwarded-Email, X-Forwarded-Access-Token) to the upstream application without stripping them. An unauthenticated attacker can inject forged identity headers on whitelisted paths.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-05-29 13:29:35 UTC
openshift/oauth-proxy does not strip client-supplied identity headers (X-Forwarded-User, X-Forwarded-Email, X-Forwarded-Access-Token) on paths that bypass authentication via skip-auth-regex. The ServeHTTP function (oauthproxy.go:568) routes whitelisted requests directly to the upstream via p.serveMux.ServeHTTP(rw, req) at lines 574-575, bypassing the Authenticate() function entirely. No header stripping logic exists anywhere in the codebase. An unauthenticated attacker can inject forged identity headers that are forwarded to the upstream application, enabling audit log poisoning and potential authorization bypass on whitelisted paths. The community oauth2-proxy project fixed this in PR #624 (July 2020) with --skip-auth-strip-headers (default: true), but this was never ported to openshift/oauth-proxy.