6.0medium
OpenClaw < 2026.4.2 - PKCE Verifier Exposure via OAuth State Parameter
- Severity
- 6.0medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-9jpj-g8vv-j5mf
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenClaw OpenClaw | before 2026.4.2 Not affected: 2026.4.2 | CVE List, NVD |
| openclaw (npm) | before 2026.4.2 | GitHub Advisory Database |
All scores
| VulnCheck | 6.0medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
Before OpenClaw 2026.4.2, the Gemini OAuth flow reused the PKCE verifier as the OAuth state value. Because the provider reflected state back in the redirect URL, the verifier could be exposed alongside the authorization code.
Impact
Anyone who could capture the redirect URL could learn both the authorization code and the PKCE verifier, defeating PKCE's interception protection for that flow and enabling token redemption.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.4.1 - Patched versions:
>= 2026.4.2 - Latest published npm version:
2026.4.1
Fix Commit(s)
a26f4d0f3ef0757db6c6c40277cc06a5de76c52f— separate OAuth state from the PKCE verifier
OpenClaw thanks @BG0ECV for reporting.
NVD (es)
OpenClaw anterior a 2026.4.2 reutiliza el verificador PKCE como el parámetro de estado de OAuth en el flujo OAuth de Gemini, exponiéndolo a través de la URL de redirección. Los atacantes que capturan la URL de redirección pueden obtener tanto el código de autorización como el verificador PKCE, eludiendo la protección PKCE y permitiendo el canje de tokens.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34511 changed 2026-09-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9jpj-g8vv-j5mf changed 2026-04-07 | CC-BY-4.0 |
| NVD | CVE-2026-34511 changed 2026-07-24 | Public domain |