AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-35619: OpenClaw has a Gateway HTTP /v1/models Route Bypasses Operator Read Scope

mediumCVSS 4.0 5.3 · 3.1 4.3GHSA-68f8-9mhj-h2mp

The OpenClaw gateway's HTTP /v1/models route checks the bearer token but not the operator.read scope. A caller who holds only another scope, such as operator.approvals, is refused models.list over WebSocket but can still list model metadata over HTTP. Fixed in OpenClaw 2026.3.24.

Published Mar 30, 2026 · Updated Apr 10, 2026 · Analysis Nov 21, 2026

What an attacker can do

OpenClaw's WebSocket control plane checks role and scope centrally before it dispatches a method. For non-admin operators, models.list needs operator.read. The OpenAI-compatible HTTP route does only the bearer check and then returns model data, so the same policy is not applied there.

The reporter reproduced it with a caller that had only operator.approvals. The WebSocket call to models.list failed with missing scope: operator.read. The HTTP request to /v1/models returned status 200 with the model list. The same gap applies to /v1/models/:id.

The attacker must already hold a valid gateway credential with some operator scope. What they gain is the gateway's model metadata: which models are configured. It does not give writes or command execution. The weight of the flaw is that scopes meant to limit an operator no longer do so across the two surfaces. Teams that issue narrow tokens, such as an approvals-only token for a review tool, find that those tokens can read more than intended.

Who is affected

The npm package openclaw at 2026.3.23 and earlier. The exposure applies to gateways that issue operator tokens with limited scopes, since a token with operator.read already may list models. Check the version:

npm ls -g openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
<= 2026.3.23
Fixed in
2026.3.24
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.24 or later:

npm install -g [email protected]

The advisory lists no interim configuration workaround. Its patch suggestion for maintainers is to apply the models.list scope gate to /v1/models and /v1/models/:id, using the same authorizeOperatorScopesForMethod helper as the WebSocket path.

How to tell if you were hit

Search gateway access logs for HTTP GET requests to /v1/models or /v1/models/ made with tokens that lack operator.read. Compare those with WebSocket attempts that failed with missing scope: operator.read from the same token. A token whose only successful call is /v1/models is a signal.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Fixed in OpenClaw 2026.3.24, the current shipping release.

Summary

The OpenAI-compatible HTTP endpoint /v1/models accepts bearer auth but does not enforce operator method scopes.

In contrast, the WebSocket RPC path enforces operator.read for models.list.

A caller connected with operator.approvals (no read scope) is rejected for models.list (missing scope: operator.read) but can still enumerate model metadata through HTTP /v1/models.

Confirmed on current main at commit 06de515b6c42816b62ec752e1c221cab67b38501.

Details

The WS control-plane path enforces role/scope checks centrally before dispatching methods. For non-admin operators, this includes required method scopes such as operator.read for models.list.

The HTTP compatibility path for /v1/models performs bearer authorization and then returns model metadata; it does not apply an equivalent scope check.

As reproduced, a caller with only operator.approvals can:

  1. connect successfully,
  2. fail models.list over WS with missing scope: operator.read,
  3. fetch /v1/models over HTTP with status 200 and model data.

This is a cross-surface authorization inconsistency where the stricter WS policy can be bypassed via HTTP.

Impact

  • Callers lacking operator.read can still enumerate gateway model metadata through HTTP compatibility routes.
  • Breaks scope model consistency between WS RPC and HTTP surfaces.
  • Weakens least-privilege expectations for operators granted non-read scopes.

Patch Suggestion

1) Enforce read scope on /v1/models routes

Apply a scope gate equivalent to models.list before serving /v1/models or /v1/models/:id.

2) Reuse centralized scope-authorization helper for HTTP compatibility endpoints

Use the same operator scope logic used by WS dispatch (authorizeOperatorScopesForMethod(...)) to prevent policy drift.

3) Add regression tests

Keep this PoC and add explicit negative/positive controls:

  • operator.approvals without read is rejected on HTTP /v1/models.
  • operator.read is accepted on both WS models.list and HTTP /v1/models.

Credit

Reported by @zpbrent.

Credited to zpbrent.

Questions

What does CVE-2026-35619 let an attacker see?

Gateway model metadata, through /v1/models and /v1/models/:id. The advisory describes no write access or code execution.

Does the attacker need a token?

Yes. The route accepts bearer auth, and the reproduction used a caller that held operator.approvals. It is not an unauthenticated flaw.

Which version fixes it?

OpenClaw 2026.3.24. Releases up to and including 2026.3.23 are affected.

Is there a workaround?

The advisory lists none. Upgrade to 2026.3.24 or later.

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