GHSA-hv93-r4j3-q65f: Openclaw OpenClaw Hook Session Key Override Vulnerability
HIGHGHSA-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
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).
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.
npm install openclaw@2026.2.12
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
GHSA-hv93-r4j3-q65f Affected Openclaw Versions
1 component(s)| 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?
Which Openclaw versions are affected?
What version fixes GHSA-hv93-r4j3-q65f?
Is openclaw affected?
What is the CVSS score of GHSA-hv93-r4j3-q65f?
What CWE is associated with GHSA-hv93-r4j3-q65f?
How can I check npm dependencies for GHSA-hv93-r4j3-q65f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}