CVE-2026-35651: Openclaw OpenClaw Has ACP CLI Approval Vulnerability

MODERATE
Advisory Identifier: GHSA-4hmj-39m8-jwc7
CVSS 4.3
CWE-116 CWE-150
Published
Advisory Summary

CVE-2026-35651 is a MODERATE (CVSS 4.3) openclaw has acp cli approval vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Openclaw libraries in the npm ecosystem. The issue involves openclaw has acp cli approval prompt ansi escape sequence injection. Remediation is available by upgrading affected packages to version 2026.3.28.

CVE-2026-35651 at a Glance

CVE Identifier CVE-2026-35651
GHSA Identifier GHSA-4hmj-39m8-jwc7
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Openclaw
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-35651

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.3.28
npm install openclaw@2026.3.28
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 CVE-2026-35651, 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.3.28), 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. 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

## Summary ACP CLI approval prompt ANSI escape sequence injection ## Affected Packages / Versions - Package: `openclaw` - Affected versions: `>= 2026.2.13, <= 2026.3.24` - First patched version: `2026.3.25` - Latest published npm version at verification time: `2026.3.24` ## Details ACP tool titles could previously carry ANSI control sequences into approval prompts and permission logs, letting untrusted tool metadata spoof terminal output. Commit `464e2c10a5edceb380d815adb6ff56e1a4c50f60` sanitizes tool titles at the source and broadens ANSI stripping to full CSI sequences. Verified vulnerable on tag `v2026.3.24` and fixed on `main` by commit `464e2c10a5edceb380d815adb6ff56e1a4c50f60`. ## Fix Commit(s) - `464e2c10a5edceb380d815adb6ff56e1a4c50f60`

CVE-2026-35651 Affected Openclaw Versions

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

References

Frequently Asked Questions

What is CVE-2026-35651?
CVE-2026-35651 is a security vulnerability in Openclaw involving OpenClaw has ACP CLI approval prompt ANSI escape sequence injection under CWE-116: Improper Encoding or Escaping of Output.
Which Openclaw versions are affected?
Affected versions include releases prior to 2026.3.28 across affected packages: openclaw.
What version fixes CVE-2026-35651?
Upgrading to 2026.3.28 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openclaw affected?
Yes, openclaw is affected in releases prior to 2026.3.28. Upgrade your dependency to 2026.3.28 or later.
What is the CVSS score of CVE-2026-35651?
CVE-2026-35651 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2026-35651?
CVE-2026-35651 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check npm dependencies for CVE-2026-35651?
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-4hmj-39m8-jwc7",
  "modified" : "2026-04-24T19:53:46Z",
  "published" : "2026-03-29T15:50:41Z",
  "aliases" : [ "CVE-2026-35651" ],
  "summary" : "OpenClaw has ACP CLI approval prompt ANSI escape sequence injection",
  "details" : "## Summary\n\nACP CLI approval prompt ANSI escape sequence injection\n\n## Affected Packages / Versions\n\n- Package: `openclaw`\n- Affected versions: `>= 2026.2.13, <= 2026.3.24`\n- First patched version: `2026.3.25`\n- Latest published npm version at verification time: `2026.3.24`\n\n## Details\n\nACP tool titles could previously carry ANSI control sequences into approval prompts and permission logs, letting untrusted tool metadata spoof terminal output. Commit `464e2c10a5edceb380d815adb6ff56e1a4c50f60` sanitizes tool titles at the source and broadens ANSI stripping to full CSI sequences.\n\nVerified vulnerable on tag `v2026.3.24` and fixed on `main` by commit `464e2c10a5edceb380d815adb6ff56e1a4c50f60`.\n\n## Fix Commit(s)\n\n- `464e2c10a5edceb380d815adb6ff56e1a4c50f60`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "openclaw"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2026.2.13"
      }, {
        "fixed" : "2026.3.28"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2026.3.24"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-4hmj-39m8-jwc7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35651"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/commit/464e2c10a5edceb380d815adb6ff56e1a4c50f60"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openclaw/openclaw"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/openclaw-ansi-escape-sequence-injection-in-approval-prompt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-150" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-29T15:50:41Z",
    "nvd_published_at" : "2026-04-10T17:17:05Z"
  }
}