Description
OpenClaw before 2026.4.2 reuses the PKCE verifier as the OAuth state parameter in the Gemini OAuth flow, exposing it through the redirect URL. Attackers who capture the redirect URL can obtain both the authorization code and PKCE verifier, defeating PKCE protection and enabling token redemption.
Problem types
CWE-330 Use of Insufficiently Random Values
Product status
Any version before 2026.4.2
2026.4.2 (semver)
Credits
RaaX
References
github.com/...enclaw/security/advisories/GHSA-9jpj-g8vv-j5mf (GitHub Security Advisory (GHSA-9jpj-g8vv-j5mf))
github.com/...ommit/a26f4d0f3ef0757db6c6c40277cc06a5de76c52f (Patch Commit)
www.vulncheck.com/...fier-exposure-via-oauth-state-parameter