NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-6g25-pc82-vfwp: OpenClaw: macOS beta onboarding exposed PKCE verifier via OAuth state

mediumCVSS 4.0 5.1

The beta OpenClaw macOS app, in versions up to 2026.2.24, reused the PKCE `code_verifier` as the OAuth `state` value during Anthropic sign-in at onboarding. That put a secret in the URL, where it could be read. The CLI and gateway onboarding paths are not affected. Upgrade `openclaw` to 2026.2.25.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

PKCE protects an OAuth authorization code by keeping the code_verifier secret until the token exchange. The state parameter, by contrast, travels through the browser URL, where it can end up in history, logs or a redirect observed by another process. In the macOS beta onboarding flow (apps/macos), the app used the verifier as the state, so the secret appeared in front-channel URL state (CWE-200).

The scope is narrow. The advisory says exploitation required obtaining both the OAuth authorization artifacts and the exposed state values during that flow. An attacker who got both could redeem the authorization code. The CVSS 4.0 vector is local with no privileges, and rates confidentiality impact as low.

Core CLI and gateway onboarding paths are not affected. The risk is for people who signed in to Anthropic through the macOS beta app's onboarding on a machine where another party could read browser history, URL logs or redirect traffic.

Who is affected

The openclaw npm package up to and including 2026.2.24, on the macOS app beta onboarding path only. The CLI and gateway onboarding paths are not affected. Check the version:

npm ls -g openclaw
openclaw --version

The affected flow is Anthropic OAuth sign-in during macOS app onboarding.

openclaw

Ecosystem
npm
Affected
<= 2026.2.24
Fixed in
2026.2.25
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.25:

npm install -g [email protected]

The fix (commit 8f3310000a8b0c11eced054c2cdb6fb27803511a) removes Anthropic OAuth sign-in from macOS onboarding. That path now supports setup-token-only Anthropic subscription auth. The sources name no other workaround. If you signed in through the beta flow on a machine you do not fully trust, you can revoke and reissue the Anthropic credential it created.

How to tell if you were hit

There is no log marker in the sources. Check whether you completed Anthropic OAuth sign-in through the macOS beta app's onboarding before 2026.2.25. Review browser history and proxy logs from that time for OAuth authorization URLs and whether another party had access to them. Look at your Anthropic account for sessions or tokens you do not recognize.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The affected surface is the OpenClaw macOS app onboarding flow, and the macOS app is currently in beta. In that beta onboarding flow, Anthropic OAuth used the PKCE code_verifier value as OAuth state, exposing that secret in front-channel URL state.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.2.24 (latest published npm at triage time)
  • Affected surface: macOS app beta onboarding path (apps/macos)
  • Not affected: core CLI/gateway onboarding paths
  • Patched version : 2026.2.25

Impact

Scope is limited to the macOS beta onboarding OAuth path. Exploitation required obtaining both OAuth authorization artifacts and exposed state values during that flow.

Remediation

OpenClaw removed Anthropic OAuth sign-in from macOS onboarding and now supports setup-token-only Anthropic subscription auth in this path.

Fix Commit(s)

  • 8f3310000a8b0c11eced054c2cdb6fb27803511a

Release Process Note

patched_versions is pre-set to the release (2026.2.25). Advisory published with npm release 2026.2.25.2.25` is published, this advisory is published.

OpenClaw thanks @zdi-disclosures for reporting.

Credited to zdi-disclosures.

Questions

Is the OpenClaw CLI affected by GHSA-6g25-pc82-vfwp?

No. The advisory says core CLI and gateway onboarding paths are not affected. Only the macOS app beta onboarding path is.

What exactly leaked?

The PKCE code_verifier, which was used as the OAuth state value and so appeared in the URL. An attacker also needed the authorization artifacts from the same flow.

How was it fixed?

OpenClaw removed Anthropic OAuth sign-in from macOS onboarding. That path now uses setup-token-only Anthropic subscription auth. The fix is in 2026.2.25.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries