Bug 2483252 (CVE-2026-49331) - CVE-2026-49331 openshift/oauth-proxy: openshift/oauth-proxy: unauthenticated identity header injection on whitelisted paths
Summary: CVE-2026-49331 openshift/oauth-proxy: openshift/oauth-proxy: unauthenticated ...
Keywords:
Status: NEW
Alias: CVE-2026-49331
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-29 13:29 UTC by OSIDB Bzimport
Modified: 2026-08-05 14:13 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.