{"id":"CVE-2026-40574","aliases":["CVE-2026-40574","GHSA-c5c4-8r6x-56w3","BIT-OAUTH2-PROXY-2026-40574","GO-2026-5314"],"related":[],"kind":"vulnerability","state":"published","title":"OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims","summary":"OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Prior to 7.15.2, an authorization bypass exists in OAuth2 Proxy as part of the email_domain enforcement option. An attacker may be able to authenticate with an email claim such as attacker@evil.com@company.com and satisfy an allowed domain check for company.com, even though the claim is not a valid email address. The issue ONLY affects deployments that rely on email_domain restrictions and accept email claim values from identity providers or claim mappings that do not strictly enforce normal email syntax. This vulnerability is fixed in 7.15.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Prior to 7.15.2, an authorization bypass exists in OAuth2 Proxy as part of the email_domain enforcement option. An attacker may be able to authenticate with an email claim such as attacker@evil.com@company.com and satisfy an allowed domain check for company.com, even though the claim is not a valid email address. The issue ONLY affects deployments that rely on email_domain restrictions and accept email claim values from identity providers or claim mappings that do not strictly enforce normal email syntax. This vulnerability is fixed in 7.15.2.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn authorization bypass exists in OAuth2 Proxy as part of the `email_domain` enforcement option. An attacker may be able to authenticate with an email claim such as `attacker@evil.com@company.com` and satisfy an allowed domain check for `company.com`, even though the claim is not a valid email address.\n\nThe issue **ONLY** affects deployments that rely on `email_domain` restrictions and accept email claim values from identity providers or claim mappings that do not strictly enforce normal email syntax. The practical risk ONLY exists in self-hosted or custom OIDC environments and federated setups where unexpected claim values can reach oauth2-proxy. Standard hosted providers that enforce valid email formatting ARE NOT effected.\n\n### Patches\nUsers should upgrade to `v7.15.2` or later once available.\n\n### Workarounds\nThe most effective workaround is to ensure the configured identity provider cannot emit malformed or attacker-controlled email claim values.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims in github.com/oauth2-proxy/oauth2-proxy","format":"markdown","source":"go"},{"lang":"es","text":"OAuth2 Proxy es un proxy inverso que proporciona autenticación utilizando proveedores OAuth2. Anterior a la versión 7.15.2, existe un bypass de autorización en OAuth2 Proxy como parte de la opción de aplicación de email_domain. Un atacante podría autenticarse con una declaración de correo electrónico como attacker@evil.com@company.com y satisfacer una verificación de dominio permitido para company.com, aunque la declaración no sea una dirección de correo electrónico válida. El problema SOLO afecta a las implementaciones que dependen de restricciones de email_domain y aceptan valores de declaración de correo electrónico de proveedores de identidad o mapeos de declaraciones que no aplican estrictamente la sintaxis normal de correo electrónico. Esta vulnerabilidad está corregida en la versión 7.15.2.","source":"nvd"}],"published":"2026-04-15T19:23:54.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 7.15.2","status":"affected"}],"vendor":"oauth2-proxy","product":"oauth2-proxy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"go"},{"ranges":[{"status":"affected","fixed":"7.15.2"}],"vendor":"oauth2_proxy_project","product":"oauth2_proxy","cpe":"cpe:2.3:a:oauth2_proxy_project:oauth2_proxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Bitnami","package":"oauth2-proxy","purl":"pkg:bitnami/oauth2-proxy","source":"bitnami"}],"references":[{"url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-c5c4-8r6x-56w3","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40574","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-21T20:18:57.843Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40574","url":"https://www.cve.org/CVERecord?id=CVE-2026-40574","licence":"CVE Terms of Use","modified":"2026-04-21T20:37:28.072Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c5c4-8r6x-56w3","url":"https://github.com/advisories/GHSA-c5c4-8r6x-56w3","licence":"CC-BY-4.0","modified":"2026-07-21T13:56:41.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5314","url":"https://pkg.go.dev/vuln/GO-2026-5314","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:30.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40574","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40574","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-OAUTH2-PROXY-2026-40574","url":"https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2026-40574","licence":"Apache-2.0","modified":"2026-09-08T08:48:10.868Z"}],"updatedAt":"2026-11-25T22:59:19.117Z","epss":{"score":0.00217,"percentile":0.12893,"date":"2026-12-01T12:00:22.000Z"}}