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

GHSA-2hm8-rqrm-xfjq: OpenClaw's owner-only gateway tool access checks were incomplete in specific authenticated DM flows

mediumCVSS 4.0 4.8

In OpenClaw up to 2026.2.17, an authenticated non-owner sender in a DM session could, through one narrow tool-invocation path, reach owner-only gateway actions. The cause was broad default scopes on some gateway calls and uneven owner-only checks. Upgrade `openclaw` to 2026.2.19.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

Two weaknesses combined. Some gateway call paths still used broad default scopes instead of least-privilege scopes tied to the method being called. Owner-only enforcement also depended on checking tool names, so it was not applied the same way on every call path. A non-owner who could message the agent in an authenticated DM session, and who found the right tool invocation path, could therefore reach gateway actions meant only for the owner (CWE-269, CWE-863).

The advisory limits the claim. The sender must be authenticated and a non-owner in a DM session. No unauthenticated access is involved, and the flaw does not give code execution by itself. The CVSS 4.0 vector rates it local, low privileges, with low confidentiality impact only.

The owner-only tools are cron, gateway and whatsapp_login. In a deployment where several people can DM one agent, the practical exposure is a lower-trust user touching scheduled jobs, gateway control or WhatsApp login, which the owner assumed were closed to them.

Who is affected

The openclaw npm package up to and including 2026.2.17 (latest published when the advisory was written, 2026-02-19). It matters where non-owner senders can use authenticated DM sessions with the agent. Check the version:

npm ls openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
< 2026.2.19
Fixed in
2026.2.19
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.19:

npm install -g [email protected]

The fix commits are a40c10d3e24568b1e2947c104484be74bf66b8d2, 2777d8ad91ef1e8a7c6f5b4b18f8507be7d02914 and 3d7ad1cfca4daaa84cd553e843e0e08fa6201349. Gateway method scopes now come from a data-driven table, with guard tests that keep every exposed core gateway method classified. Owner-only enforcement moved into tool policy wrappers and tool metadata, and cron, gateway and whatsapp_login are marked owner-only explicitly. The sources name no workaround.

How to tell if you were hit

Review gateway and agent logs for calls to the cron, gateway or whatsapp_login tools from DM sessions whose sender is not the owner. Check your cron job list and gateway settings for entries you did not create. The sources give no fixed log string for this flaw.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In authenticated non-owner DM sessions, a narrow tool-invocation path could reach broader-than-intended owner-only gateway actions.

Impact

This requires an authenticated non-owner sender in a DM session and a specific tool invocation path. No unauthenticated access is involved, and this does not provide direct code execution by itself.

Root Cause

  • Some gateway call paths were still using broader default scopes instead of method-level least-privilege scopes.
  • Owner-only enforcement depended on tool-name checks and was not consistently metadata-driven across all call paths.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.17 (latest published npm version as of February 19, 2026)
  • Patched: 2026.2.19

Remediation

  • Refactored gateway method scope mapping to a data-driven table and added guard tests to ensure all exposed core gateway methods stay classified.
  • Centralized owner-only enforcement in tool policy wrappers and tool metadata.
  • Marked owner-only tools explicitly (cron, gateway, whatsapp_login) and removed duplicated per-tool owner checks.
  • Refactored gateway call path internals into smaller helpers while preserving behavior and coverage.

Fix Commit(s)

  • a40c10d3e24568b1e2947c104484be74bf66b8d2
  • 2777d8ad91ef1e8a7c6f5b4b18f8507be7d02914
  • 3d7ad1cfca4daaa84cd553e843e0e08fa6201349

OpenClaw thanks @Adam55A-code for reporting.

Credited to Adam55A-code.

Questions

Does this need an authenticated user?

Yes. The advisory requires an authenticated non-owner sender in a DM session and a specific tool invocation path. Unauthenticated access is not involved.

Which OpenClaw version fixes GHSA-2hm8-rqrm-xfjq?

2026.2.19. The affected range ends at 2026.2.17.

Which tools are owner-only now?

cron, gateway and whatsapp_login are explicitly marked owner-only in tool metadata, and the policy wrappers enforce it in one place.

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