What’s Vulnerable › Vulnerabilities
CVE-2025-22868: Unexpected memory consumption during token parsing in golang.org/x/oauth2
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-1286
Description
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
Affected products
- golang.org/x/oauth2/jws: before 0.27.0 — fixed in 0.27.0
- Golang.Org/X/Oauth2: before 0.27.0 — fixed in 0.27.0
How to fix
Upgrade to a fixed version: golang.org/x/oauth2/jws 0.27.0; Golang.Org/X/Oauth2 0.27.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2025-22868 or the next vulnerability affects your stack