GHSA-hv93-r4j3-q65f: Openclaw OpenClaw Hook Session Key Override Vulnerability

HIGH
CVSS 7.1
CWE-639 CWE-330
Published
Advisory Summary

GHSA-hv93-r4j3-q65f is a HIGH (CVSS 7.1) openclaw hook session key override vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Openclaw libraries in the npm ecosystem. The issue involves openclaw hook session key override enables targeted cross-session routing. Remediation is available by upgrading affected packages to version 2026.2.12.

GHSA-hv93-r4j3-q65f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hv93-r4j3-q65f
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Openclaw
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.1

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

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

How to Fix GHSA-hv93-r4j3-q65f

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.12
npm install openclaw@2026.2.12
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-hv93-r4j3-q65f, 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.12), 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. 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 The issue is not deterministic session keys by itself. The exploitable path was accepting externally supplied `sessionKey` values on authenticated hook ingress, allowing a hook token holder to route messages into chosen sessions. ## Affected Behavior - `POST /hooks/agent` accepted payload `sessionKey` and used it directly for session routing. - Common session-key shapes (for example `agent:main:dm:<peerId>`) were often derivable from known metadata, making targeted routing practical when request-level override was enabled. ## Attack Preconditions - Attacker can call hook endpoints with a valid hook token. - Hook ingress allows request-selected `sessionKey` values. - Target session keys can be derived or guessed. Without those preconditions, deterministic key formats alone do not provide access. ## Impact - Integrity: targeted message/prompt injection into chosen sessions. - Persistence: poisoned context can affect subsequent turns when the same session key is reused. - Confidentiality impact is secondary and depends on additional weaknesses. ## Affected Versions - `openclaw` `>= 2.0.0-beta3` and `< 2026.2.12` ## Patched Versions - `openclaw` `>= 2026.2.12` ## Fix OpenClaw now uses secure defaults for hook session routing: - `POST /hooks/agent` rejects payload `sessionKey` unless `hooks.allowRequestSessionKey=true`. - Added `hooks.defaultSessionKey` for fixed ingress routing. - Added `hooks.allowedSessionKeyPrefixes` to constrain explicit routing keys. - Security audit warns on unsafe hook session-routing settings. ## Recommended Configuration ```json { "hooks": { "enabled": true, "token": "${OPENCLAW_HOOKS_TOKEN}", "defaultSessionKey": "hook:ingress", "allowRequestSessionKey": false, "allowedSessionKeyPrefixes": ["hook:"] } } ``` ## Credit Thanks @alpernae for responsible reporting.

GHSA-hv93-r4j3-q65f Affected Openclaw Versions

1 component(s)
Fixed Versions:
2026.2.12
Product / Package Ecosystem Affected Versions Fixed Version
openclaw
npm
≥ 2.0.0-beta3
< 2026.2.12
2026.2.12

References

Frequently Asked Questions

What is GHSA-hv93-r4j3-q65f?
GHSA-hv93-r4j3-q65f is a security vulnerability in Openclaw involving OpenClaw Hook Session Key Override Enables Targeted Cross-Session Routing under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Openclaw versions are affected?
Affected versions include releases prior to 2026.2.12 across affected packages: openclaw.
What version fixes GHSA-hv93-r4j3-q65f?
Upgrading to 2026.2.12 (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.12. Upgrade your dependency to 2026.2.12 or later.
What is the CVSS score of GHSA-hv93-r4j3-q65f?
GHSA-hv93-r4j3-q65f has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with GHSA-hv93-r4j3-q65f?
GHSA-hv93-r4j3-q65f is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check npm dependencies for GHSA-hv93-r4j3-q65f?
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-hv93-r4j3-q65f",
  "modified" : "2026-02-17T16:43:34Z",
  "published" : "2026-02-17T16:43:34Z",
  "aliases" : [ ],
  "summary" : "OpenClaw Hook Session Key Override Enables Targeted Cross-Session Routing",
  "details" : "## Summary\nThe issue is not deterministic session keys by itself. The exploitable path was accepting externally supplied `sessionKey` values on authenticated hook ingress, allowing a hook token holder to route messages into chosen sessions.\n\n## Affected Behavior\n- `POST /hooks/agent` accepted payload `sessionKey` and used it directly for session routing.\n- Common session-key shapes (for example `agent:main:dm:<peerId>`) were often derivable from known metadata, making targeted routing practical when request-level override was enabled.\n\n## Attack Preconditions\n- Attacker can call hook endpoints with a valid hook token.\n- Hook ingress allows request-selected `sessionKey` values.\n- Target session keys can be derived or guessed.\n\nWithout those preconditions, deterministic key formats alone do not provide access.\n\n## Impact\n- Integrity: targeted message/prompt injection into chosen sessions.\n- Persistence: poisoned context can affect subsequent turns when the same session key is reused.\n- Confidentiality impact is secondary and depends on additional weaknesses.\n\n## Affected Versions\n- `openclaw` `>= 2.0.0-beta3` and `< 2026.2.12`\n\n## Patched Versions\n- `openclaw` `>= 2026.2.12`\n\n## Fix\nOpenClaw now uses secure defaults for hook session routing:\n- `POST /hooks/agent` rejects payload `sessionKey` unless `hooks.allowRequestSessionKey=true`.\n- Added `hooks.defaultSessionKey` for fixed ingress routing.\n- Added `hooks.allowedSessionKeyPrefixes` to constrain explicit routing keys.\n- Security audit warns on unsafe hook session-routing settings.\n\n## Recommended Configuration\n```json\n{\n  \"hooks\": {\n    \"enabled\": true,\n    \"token\": \"${OPENCLAW_HOOKS_TOKEN}\",\n    \"defaultSessionKey\": \"hook:ingress\",\n    \"allowRequestSessionKey\": false,\n    \"allowedSessionKeyPrefixes\": [\"hook:\"]\n  }\n}\n```\n\n## Credit\nThanks @alpernae for responsible reporting.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "openclaw"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-beta3"
      }, {
        "fixed" : "2026.2.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-hv93-r4j3-q65f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/commit/113ebfd6a23c4beb8a575d48f7482593254506ec"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openclaw/openclaw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/releases/tag/v2026.2.12"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-330", "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-17T16:43:34Z",
    "nvd_published_at" : null
  }
}