{"id":"CVE-2026-76835","aliases":[],"summary":"OAuth2 Proxy 7.15.2 through 7.15.4 Authentication Bypass via X-Forwarded-Uri Under the Default Trusted Proxy Set","published_at":"2026-08-24T17:55:39.829Z","modified_at":"2026-10-08T15:25:05.218Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"critical","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.004530000034719706,"percentile":0.4006899893283844,"date":"2026-11-19T00:00:00Z"},"priority":11.3,"details":"OAuth2 Proxy honours a client-supplied X-Forwarded-Uri header when deciding whether a request may skip authentication, because the guard added for CVE-2026-40575 is inert in the default reverse-proxy configuration. GetRequestURI in pkg/requests/util/util.go prefers that header over the real request URI whenever CanTrustForwardedHeaders returns true, and isAllowedPath in oauthproxy.go matches the skip_auth_routes and skip_auth_regex allow list against the resulting path. CanTrustForwardedHeaders in pkg/apis/middleware/scope.go grants that trust when the caller's address is in the trusted proxy set, and buildTrustedProxyNetSet falls back to defaultTrustedProxyIPs, which is 0.0.0.0/0 and ::/0, whenever reverse proxy mode is enabled without trusted_proxy_ip configured. Every client is therefore treated as a trusted proxy. An unauthenticated attacker can request a protected upstream path while setting X-Forwarded-Uri to a value matching an allow-listed route, so the skip-auth decision is made against the spoofed value while the upstream receives the protected path unchanged.","affected_stack":[{"ecosystem":"Red Hat:hummingbird:1","package":"oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.15.5-0.1.hum1"}]}],"fixed":["0:7.15.5-0.1.hum1"],"provider":"redhat-vex","source":"CVE-2026-76835","relation":"self"},{"ecosystem":"Red Hat:hummingbird:1","package":"oauth2-proxy","purl":"pkg:rpm/redhat/oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.15.5-0.1.hum1"}]}],"fixed":["0:7.15.5-0.1.hum1"],"provider":"osv","source":"RHSA-2026:74536","relation":"upstream"}],"affected_other":[{"ecosystem":"CVE","package":"oauth2-proxy/oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.15.2"},{"last_affected":"7.15.4"}]}],"provider":"cvelistv5","source":"CVE-2026-76835","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Ceph Storage 8","cpe":"cpe:/a:redhat:ceph_storage:8","status":"not_affected","packages":["rhceph/oauth2-proxy-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 9","cpe":"cpe:/a:redhat:ceph_storage:9","status":"not_affected","packages":["rhceph/oauth2-proxy-rhel10","rhceph/oauth2-proxy-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"fixed","packages":["oauth2-proxy"],"package_count":1,"fixed":["oauth2-proxy-7.15.5-0.1.hum1"],"advisories":["RHSA-2026:74536"],"provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/oauth2-proxy-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"}],"records":[{"provider":"osv","source_id":"RHSA-2026:74536","relation":"upstream","url":"https://osv.dev/vulnerability/RHSA-2026:74536","license":"CC-BY-4.0","published_at":"2026-10-02T10:25:59Z","modified_at":"2026-11-13T18:43:57Z","summary":"Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"RHSA-2026:74536"}],"affected":[{"ecosystem":"Red Hat:hummingbird:1","package":"oauth2-proxy","purl":"pkg:rpm/redhat/oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.15.5-0.1.hum1"}]}],"fixed":["0:7.15.5-0.1.hum1"],"provider":"osv","source":"RHSA-2026:74536","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:74536"},{"type":"ARTICLE","url":"https://images.redhat.com/"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-76835"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-56851"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_74536.json"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2547607"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-56851"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56851"},{"type":"ARTICLE","url":"https://go.dev/cl/793360"},{"type":"ARTICLE","url":"https://go.dev/issue/80112"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-6629"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2522418"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-76835"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76835"},{"type":"ARTICLE","url":"https://github.com/oauth2-proxy/oauth2-proxy"},{"type":"ARTICLE","url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/v7.15.4/pkg/apis/middleware/scope.go"},{"type":"ARTICLE","url":"https://github.com/oauth2-proxy/oauth2-proxy/issues/3506"},{"type":"ARTICLE","url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/oauth2-proxy-through-authentication-bypass-via-x-forwarded-uri-under-the-default-trusted-proxy-set"}]},{"provider":"cvelistv5","source_id":"CVE-2026-76835","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-76835","license":"CC-BY-4.0","published_at":"2026-08-24T17:55:39.829Z","modified_at":"2026-10-08T15:25:05.218Z","summary":"OAuth2 Proxy 7.15.2 through 7.15.4 Authentication Bypass via X-Forwarded-Uri Under the Default Trusted Proxy Set","details":"OAuth2 Proxy honours a client-supplied X-Forwarded-Uri header when deciding whether a request may skip authentication, because the guard added for CVE-2026-40575 is inert in the default reverse-proxy configuration. GetRequestURI in pkg/requests/util/util.go prefers that header over the real request URI whenever CanTrustForwardedHeaders returns true, and isAllowedPath in oauthproxy.go matches the skip_auth_routes and skip_auth_regex allow list against the resulting path. CanTrustForwardedHeaders in pkg/apis/middleware/scope.go grants that trust when the caller's address is in the trusted proxy set, and buildTrustedProxyNetSet falls back to defaultTrustedProxyIPs, which is 0.0.0.0/0 and ::/0, whenever reverse proxy mode is enabled without trusted_proxy_ip configured. Every client is therefore treated as a trusted proxy. An unauthenticated attacker can request a protected upstream path while setting X-Forwarded-Uri to a value matching an allow-listed route, so the skip-auth decision is made against the spoofed value while the upstream receives the protected path unchanged.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","source":"CVE-2026-76835"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-76835"}],"affected":[{"ecosystem":"CVE","package":"oauth2-proxy/oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.15.2"},{"last_affected":"7.15.4"}]}],"provider":"cvelistv5","source":"CVE-2026-76835","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/issues/3506"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/v7.15.4/pkg/apis/middleware/scope.go"},{"type":"ADVISORY","url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/oauth2-proxy-through-authentication-bypass-via-x-forwarded-uri-under-the-default-trusted-proxy-set"}]},{"provider":"redhat-vex","source_id":"CVE-2026-76835","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-76835","license":"CC-BY-4.0","published_at":"2026-08-24T17:55:39.829Z","modified_at":"2026-09-29T20:15:00Z","summary":"github.com/oauth2-proxy/oauth2-proxy: OAuth2 Proxy 7.15.2 through 7.15.4 Authentication Bypass via X-Forwarded-Uri Under the Default Trusted Proxy Set","details":"A flaw was found in oauth2-proxy. When configured in reverse-proxy mode without explicit trusted proxy settings, the application defaults to treating all incoming network traffic as originating from trusted proxies. A remote, unauthenticated attacker can exploit this issue by sending a request with a forged X-Forwarded-Uri header that matches an allow-listed path. As a result, the proxy bypasses authentication controls and grants unauthorized access to protected upstream services.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-76835"},{"type":"Red Hat","score":"Important","source":"CVE-2026-76835"}],"affected":[{"ecosystem":"Red Hat:hummingbird:1","package":"oauth2-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.15.5-0.1.hum1"}]}],"fixed":["0:7.15.5-0.1.hum1"],"provider":"redhat-vex","source":"CVE-2026-76835","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Ceph Storage 8","cpe":"cpe:/a:redhat:ceph_storage:8","status":"not_affected","packages":["rhceph/oauth2-proxy-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat Ceph Storage 9","cpe":"cpe:/a:redhat:ceph_storage:9","status":"not_affected","packages":["rhceph/oauth2-proxy-rhel10","rhceph/oauth2-proxy-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"fixed","packages":["oauth2-proxy"],"package_count":1,"fixed":["oauth2-proxy-7.15.5-0.1.hum1"],"advisories":["RHSA-2026:74536"],"provider":"redhat-vex","source":"CVE-2026-76835"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/oauth2-proxy-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-76835"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-76835.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-76835"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2522418"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-76835"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76835"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/v7.15.4/pkg/apis/middleware/scope.go"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/issues/3506"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/oauth2-proxy-through-authentication-bypass-via-x-forwarded-uri-under-the-default-trusted-proxy-set"}]}],"references":[{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/issues/3506"},{"type":"WEB","url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/v7.15.4/pkg/apis/middleware/scope.go"},{"type":"ADVISORY","url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/oauth2-proxy-through-authentication-bypass-via-x-forwarded-uri-under-the-default-trusted-proxy-set"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-76835.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-76835"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2522418"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-76835"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76835"}],"sources":[{"provider":"osv","source_id":"RHSA-2026:74536","url":"https://osv.dev/vulnerability/RHSA-2026:74536","license":"CC-BY-4.0","modified_at":"2026-11-13T18:43:57Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-76835","url":"https://www.cve.org/CVERecord?id=CVE-2026-76835","license":"CC-BY-4.0","modified_at":"2026-10-08T15:25:05.218Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-76835","url":"https://access.redhat.com/security/cve/CVE-2026-76835","license":"CC-BY-4.0","modified_at":"2026-09-29T20:15:00Z","relation":"self"}]}
