GHSA-7jm2-g593-4qrc: OpenClaw Agent Gateway Config Mutations Could Vulnerability

MODERATE
CWE-1220 CWE-285
Published
Advisory Summary

GHSA-7jm2-g593-4qrc is a MODERATE agent gateway config mutations could vulnerability (CWE-1220: Insufficient Granularity of Access Control) affecting OpenClaw libraries in the npm ecosystem. The issue involves agent gateway config mutations could change protected operator settings. Remediation is available by upgrading affected packages to version 2026.4.20.

GHSA-7jm2-g593-4qrc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7jm2-g593-4qrc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1220: Insufficient Granularity of Access Control
Affected Product OpenClaw
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-7jm2-g593-4qrc

To remediate this vulnerability, upgrade all affected OpenClaw dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openclaw fixed: 2026.4.20
npm install openclaw@2026.4.20
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls openclaw

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-7jm2-g593-4qrc, inspect your project dependencies using npm:

npm ls openclaw

Analyze the terminal output to locate any version of OpenClaw in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.4.20), your application is affected.

Note: The npm ls openclaw command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1220: Insufficient Granularity of Access Control, where the product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. however, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets. In OpenClaw, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Affected Packages / Versions - Package: `openclaw` (npm) - Affected versions: `< 2026.4.20` - Patched version: `2026.4.20` ## Impact The agent-facing `gateway config.patch` / `config.apply` guard did not cover several operator-trusted settings, including sandbox policy, plugin enablement, gateway auth/TLS, hook routing, MCP server configuration, SSRF policy, and filesystem hardening. A prompt-injected model with access to the owner-only gateway tool could persist changes to those settings. This is a model-to-operator guard bypass, not a remote unauthenticated gateway compromise. Severity is medium. ## Fix OpenClaw now blocks model-driven gateway config mutations for the broader operator-trusted path set and covers per-agent overrides and array-entry patching. Fix commit: - `fe30b31a97a917ecc6e92f6c85378b6b20352422` ## Release Fixed in OpenClaw `2026.4.20`.

GHSA-7jm2-g593-4qrc Affected OpenClaw Versions

1 component(s)
Fixed Versions:
2026.4.20
Product / Package Ecosystem Affected Versions Fixed Version
openclaw
npm
< 2026.4.20
2026.4.20

References

Frequently Asked Questions

What is GHSA-7jm2-g593-4qrc?
GHSA-7jm2-g593-4qrc is a security vulnerability in OpenClaw involving Agent gateway config mutations could change protected operator settings under CWE-1220: Insufficient Granularity of Access Control.
Which OpenClaw versions are affected?
Affected versions include releases prior to 2026.4.20 across affected packages: openclaw.
What version fixes GHSA-7jm2-g593-4qrc?
Upgrading to 2026.4.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openclaw affected?
Yes, openclaw is affected in releases prior to 2026.4.20. Upgrade your dependency to 2026.4.20 or later.
What CWE is associated with GHSA-7jm2-g593-4qrc?
GHSA-7jm2-g593-4qrc is classified under CWE-1220: Insufficient Granularity of Access Control (The product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. However, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets.).
How can I check npm dependencies for GHSA-7jm2-g593-4qrc?
Run the dependency tree command: 'npm ls openclaw'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7jm2-g593-4qrc",
  "modified" : "2026-04-25T23:51:11Z",
  "published" : "2026-04-25T23:51:11Z",
  "aliases" : [ ],
  "summary" : "OpenClaw: Agent gateway config mutations could change protected operator settings",
  "details" : "## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected versions: `< 2026.4.20`\n- Patched version: `2026.4.20`\n\n## Impact\n\nThe agent-facing `gateway config.patch` / `config.apply` guard did not cover several operator-trusted settings, including sandbox policy, plugin enablement, gateway auth/TLS, hook routing, MCP server configuration, SSRF policy, and filesystem hardening. A prompt-injected model with access to the owner-only gateway tool could persist changes to those settings.\n\nThis is a model-to-operator guard bypass, not a remote unauthenticated gateway compromise. Severity is medium.\n\n## Fix\n\nOpenClaw now blocks model-driven gateway config mutations for the broader operator-trusted path set and covers per-agent overrides and array-entry patching.\n\nFix commit:\n\n- `fe30b31a97a917ecc6e92f6c85378b6b20352422`\n\n## Release\n\nFixed in OpenClaw `2026.4.20`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "openclaw"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.4.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-7jm2-g593-4qrc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/commit/fe30b31a97a917ecc6e92f6c85378b6b20352422"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openclaw/openclaw"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1220", "CWE-285" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-25T23:51:11Z",
    "nvd_published_at" : null
  }
}