Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/oauth2
  4. ›
  5. CVE-2025-22868

CVE-2025-22868: golang.org/x/oauth2 Improper Validation of Syntactic Correctness of Input vulnerability

July 18, 2025

An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.

References

  • github.com/advisories/GHSA-6v2p-p543-phr9
  • go.dev/cl/652155
  • go.dev/issue/71490
  • nvd.nist.gov/vuln/detail/CVE-2025-22868
  • pkg.go.dev/vuln/GO-2025-3488

Code Behaviors & Features

Detect and mitigate CVE-2025-22868 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 0.27.0

Fixed versions

  • 0.27.0

Solution

Upgrade to version 0.27.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1286: Improper Validation of Syntactic Correctness of Input

Source file

go/golang.org/x/oauth2/CVE-2025-22868.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:18:28 +0000.