# CVE-2022-39222: OAuth authorization code exposure in Dex

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.35.0 (CNA); fix release not confirmed
- Status: published
- Published: 2022-10-06 · Modified: 2025-04-22
- Aliases: CGA-2m8c-w539-mc25, CGA-7g65-pm9m-f677, GHSA-vh7g-p26c-j2cw
- Record: https://cvemate.com/vulnerability/CVE-2022-39222 · JSON: https://cvemate.com/vulnerability/CVE-2022-39222/json

## 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.
```

## Signals

- CVSS: 9.3 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- EPSS: 1.69%, percentile 77.868%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard kots (Chainguard): All versions (No fix recorded)
- wolfi kots (Wolfi): All versions (No fix recorded)
- dexidp dex: \< 2.35.0
- github.com/dexidp dex (Go): \< 2.35.0
- linuxfoundation dex: \< 2.35.0

## References

- <https://github.com/dexidp/dex/security/advisories/GHSA-vh7g-p26c-j2cw>
- <https://github.com/dexidp/dex/commit/49471b14c8080ddb034d4855841123d378b7a634>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39222.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39222>
- <https://github.com/dexidp/dex>
- <https://github.com/dexidp/dex/releases/tag/v2.35.0>

---

Data as of 2026-12-05T04:39:14.620Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
