Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/dexidp/dex
  4. ›
  5. CVE-2022-39222

CVE-2022-39222: Insufficiently Protected Credentials

October 6, 2022 (updated July 11, 2023)

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.

References

  • github.com/advisories/GHSA-vh7g-p26c-j2cw
  • github.com/dexidp/dex/commit/49471b14c8080ddb034d4855841123d378b7a634
  • github.com/dexidp/dex/releases/tag/v2.35.0
  • github.com/dexidp/dex/security/advisories/GHSA-vh7g-p26c-j2cw
  • nvd.nist.gov/vuln/detail/CVE-2022-39222

Code Behaviors & Features

Detect and mitigate CVE-2022-39222 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.35.0

Fixed versions

  • v2.35.0

Solution

Upgrade to version 2.35.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

go/github.com/dexidp/dex/CVE-2022-39222.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.