CVE-2026-32897: Openclaw OpenClaw Reuses The Gateway Auth Vulnerability

LOW
Advisory Identifier: GHSA-v6x2-2qvm-6gv8
CWE-522
Published
Advisory Summary

CVE-2026-32897 is a LOW openclaw reuses the gateway auth vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Openclaw libraries in the npm ecosystem. The issue involves openclaw reuses the gateway auth token in the owner id prompt hashing fallback. Remediation is available by upgrading affected packages to version 2026.2.22.

CVE-2026-32897 at a Glance

CVE Identifier CVE-2026-32897
GHSA Identifier GHSA-v6x2-2qvm-6gv8
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Openclaw
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-32897

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.2.22
npm install openclaw@2026.2.22
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-32897, 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.2.22), 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. 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

## Vulnerability OpenClaw reused `gateway.auth.token` (and `gateway.remote.token`) as a fallback hash secret for owner-ID prompt obfuscation when `commands.ownerDisplay=hash` and `commands.ownerDisplaySecret` was unset. This created secret dual-use between gateway authentication and prompt metadata hashing. ## Impact - Auth-secret dual-use across security domains (gateway auth and prompt metadata hashing). - Hash outputs are visible to third-party model providers in system prompts. - No direct plaintext token disclosure. - Practical risk is highest when operators use weak gateway tokens and leave owner hash secret unset. ## Affected Packages / Versions - Package: `openclaw` (npm) - Latest affected published version: `2026.2.21-2` - Vulnerable range: `<= 2026.2.21-2` - Patched version (planned next release): `2026.2.22` ## Affected Components - `src/agents/cli-runner/helpers.ts` - `src/agents/pi-embedded-runner/run/attempt.ts` - `src/agents/pi-embedded-runner/compact.ts` ## Remediation - Added a shared owner-display resolver and secret-generation helper. - Removed fallback to `gateway.auth.token` and `gateway.remote.token`. - Auto-generates and persists a dedicated `commands.ownerDisplaySecret` when hash mode is enabled and secret is missing. ## Fix Commit(s) - c99e7696e6893083b256f0a6c88fb060f3a76fb7 ## Release Process Note `patched_versions` is pre-set to the planned next release (`2026.2.22`). Once npm release `2026.2.22` is published, this advisory only needs to be published. OpenClaw thanks @aether-ai-agent for reporting.

CVE-2026-32897 Affected Openclaw Versions

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

References

Frequently Asked Questions

What is CVE-2026-32897?
CVE-2026-32897 is a security vulnerability in Openclaw involving OpenClaw reuses the gateway auth token in the owner ID prompt hashing fallback under CWE-522: Insufficiently Protected Credentials.
Which Openclaw versions are affected?
Affected versions include releases prior to 2026.2.22 across affected packages: openclaw.
What version fixes CVE-2026-32897?
Upgrading to 2026.2.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openclaw affected?
Yes, openclaw is affected in releases prior to 2026.2.22. Upgrade your dependency to 2026.2.22 or later.
What CWE is associated with CVE-2026-32897?
CVE-2026-32897 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check npm dependencies for CVE-2026-32897?
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-v6x2-2qvm-6gv8",
  "modified" : "2026-03-24T17:55:00Z",
  "published" : "2026-03-03T23:01:30Z",
  "aliases" : [ "CVE-2026-32897" ],
  "summary" : "OpenClaw reuses the gateway auth token in the owner ID prompt hashing fallback",
  "details" : "## Vulnerability\n\nOpenClaw reused `gateway.auth.token` (and `gateway.remote.token`) as a fallback hash secret for owner-ID prompt obfuscation when `commands.ownerDisplay=hash` and `commands.ownerDisplaySecret` was unset.\n\nThis created secret dual-use between gateway authentication and prompt metadata hashing.\n\n## Impact\n\n- Auth-secret dual-use across security domains (gateway auth and prompt metadata hashing).\n- Hash outputs are visible to third-party model providers in system prompts.\n- No direct plaintext token disclosure.\n- Practical risk is highest when operators use weak gateway tokens and leave owner hash secret unset.\n\n## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Latest affected published version: `2026.2.21-2`\n- Vulnerable range: `<= 2026.2.21-2`\n- Patched version (planned next release): `2026.2.22`\n\n## Affected Components\n\n- `src/agents/cli-runner/helpers.ts`\n- `src/agents/pi-embedded-runner/run/attempt.ts`\n- `src/agents/pi-embedded-runner/compact.ts`\n\n## Remediation\n\n- Added a shared owner-display resolver and secret-generation helper.\n- Removed fallback to `gateway.auth.token` and `gateway.remote.token`.\n- Auto-generates and persists a dedicated `commands.ownerDisplaySecret` when hash mode is enabled and secret is missing.\n\n## Fix Commit(s)\n\n- c99e7696e6893083b256f0a6c88fb060f3a76fb7\n\n## Release Process Note\n\n`patched_versions` is pre-set to the planned next release (`2026.2.22`). Once npm release `2026.2.22` is published, this advisory only needs to be published.\n\nOpenClaw thanks @aether-ai-agent for reporting.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "openclaw"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.2.22"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2026.2.21-2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-v6x2-2qvm-6gv8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32897"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/commit/c99e7696e6893083b256f0a6c88fb060f3a76fb7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openclaw/openclaw"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/openclaw-authentication-token-reuse-in-owner-id-prompt-hashing-fallback"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-03T23:01:30Z",
    "nvd_published_at" : null
  }
}