{"id":"CVE-2022-39222","published":"2022-10-06T00:00:00Z","modified":"2025-04-22T17:20:02Z","title":"OAuth authorization code exposure in Dex","vendor":"dexidp","product":"dex","tier":"tail","description":{"text":"Dex is an identity service that uses OpenID Connect to drive authentication for other apps. Dex instances with public clients (and by extension, clients accepting tokens issued by those Dex instances) are affected by this vulnerability if they are running a version prior to 2.35.0. An attacker can exploit this vulnerability by making a victim navigate to a malicious website and guiding them through the OIDC flow, stealing the OAuth authorization code in the process. The authorization code then can be exchanged by the attacker for a token, gaining access to applications accepting that token. Version 2.35.0 has introduced a fix for this issue. Users are advised to upgrade. There are no known workarounds for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01584,"percentile":0.76171,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/dexidp/dex/security/advisories/GHSA-vh7g-p26c-j2cw","tags":[]},{"url":"https://github.com/dexidp/dex/commit/49471b14c8080ddb034d4855841123d378b7a634","tags":[]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":15.23},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"dexidp","affectedVersions":[{"vendor":"dexidp","product":"dex","versions":["< 2.35.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:41:13.660223Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/dexidp/dex","vulnerableRanges":["<2.35.0"],"patched":["2.35.0"],"from":["GHSA-vh7g-p26c-j2cw"],"provenance":"source"}],"summary":{"text":"Dex, the OpenID Connect identity service, exposes OAuth authorization codes in its OIDC flow for instances with public clients, affecting versions before 2.35.0. An attacker can steal a victim's authorization code by lure the victim to a malicious website and guiding them through the flow, requiring only network access and user interaction, with no authentication needed, and then exchange that code for a token to access applications that accept it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:48:25Z"},"euvd":{"id":"EUVD-2022-7166","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26290","published":"2020-12-28","fixed":"2.27.0","kev":false},{"cve":"CVE-2020-27847","published":"2021-05-28","fixed":"2.27.0","kev":false,"link":{"from":"CVE-2020-27847","to":"CVE-2022-39222","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/dexidp/dex","fromFixed":"2.27.0","toFixed":"2.35.0","daysApart":496}]}},{"cve":"CVE-2022-39222","published":"2022-10-06","fixed":"2.35.0","kev":false},{"cve":"CVE-2024-23656","published":"2024-01-25","fixed":"2.38.0","kev":false}],"package":"Go:github.com/dexidp/dex"}}