
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34511 is a PKCE verifier exposure vulnerability in OpenClaw's Gemini OAuth flow, where the PKCE verifier is incorrectly reused as the OAuth state parameter. This implementation flaw causes the PKCE verifier to be reflected back in the OAuth redirect URL, exposing it alongside the authorization code to any party who can capture that URL. The vulnerability affects all OpenClaw (npm) versions prior to 2026.4.2 and was disclosed on April 3, 2026. It carries a CVSS v3.1 base score of 5.9 (Medium) and a CVSS v4.0 base score of 6.0 (Medium) (GitHub Advisory, Github Advisory).
The root cause is classified as CWE-330 (Use of Insufficiently Random Values), specifically an implementation error where the buildAuthUrl() function in extensions/google/oauth.flow.ts passed the PKCE verifier value directly as the OAuth state parameter instead of generating an independent random value (GitHub Commit). PKCE (Proof Key for Code Exchange) is designed to prevent authorization code interception attacks by binding the code exchange to a secret verifier known only to the client; reusing it as the state parameter defeats this protection because the OAuth provider reflects state back in the redirect URL, making the verifier observable. An attacker positioned to intercept or observe the redirect URL (e.g., via browser history, referrer headers, proxy logs, or a malicious redirect target) can extract both the authorization code and the PKCE verifier, then independently redeem the authorization code for tokens (GitHub Advisory). The fix, introduced in commit a26f4d0, adds a dedicated generateOAuthState() function that produces a cryptographically independent 32-byte random hex value for the state parameter, fully separating it from the PKCE verifier (GitHub Commit).
Successful exploitation allows an attacker who captures the OAuth redirect URL to obtain both the authorization code and the PKCE verifier, enabling them to redeem the authorization code for OAuth tokens and gain unauthorized access to the victim's account. The primary impact is a high confidentiality loss — specifically, unauthorized access to the user's Gemini/Google account credentials and any data accessible via those tokens. Integrity and availability are not directly impacted by this vulnerability (GitHub Advisory, Github Advisory).
There is no known public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of disclosure (Feedly). The EPSS score is approximately 0.029%, reflecting a low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to intercept or observe the OAuth redirect URL during an active user authentication session, which introduces a meaningful prerequisite (passive user interaction and network-level access or log access), limiting the attack surface compared to fully unauthenticated, zero-interaction vulnerabilities (Github Advisory).
state set to the PKCE verifier value.code (authorization code) and state (which equals the PKCE verifier) parameters.code parameter (authorization code) and the state parameter (PKCE verifier).code and code_verifier (the extracted state value). Because the PKCE verifier is now known, the token endpoint accepts the request and issues access and refresh tokens.Upgrade OpenClaw (npm package) to version 2026.4.2 or later, which separates the OAuth CSRF state from the PKCE verifier by introducing an independent generateOAuthState() function (GitHub Commit). No configuration-based workaround is available for unpatched versions; the fix requires a code change. As additional precautions, administrators should review OAuth flow implementations to ensure PKCE verifiers are never reused as state parameters, and monitor authentication logs for signs of redirect URL interception or anomalous token exchange activity (Feedly).
The vulnerability was reported by researcher @BG0ECV and credited in the GitHub security advisory (GitHub Advisory). A brief technical write-up was published on dev.to summarizing the PKCE verifier exposure issue. No significant broader media coverage or notable security community debate has been observed beyond standard CVE tracking and advisory aggregation.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."