openclaw
Affected
- introduced
2.0.0-beta3, fixed2026.2.12(semver)
Fixed versions
2026.2.12
Fix
- Fixed version
2026.2.12npm install [email protected]
Advisory
Also known as: None
OpenClaw Hook Session Key Override Enables Targeted Cross-Session Routing
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.agent:main:dm:<peerId>) were often derivable from known metadata, making targeted routing practical when request-level override was enabled.Attack Preconditions
sessionKey values.Without those preconditions, deterministic key formats alone do not provide access.
Impact
Affected Versions
openclaw >= 2.0.0-beta3 and < 2026.2.12Patched Versions
openclaw >= 2026.2.12Fix
OpenClaw now uses secure defaults for hook session routing:
POST /hooks/agent rejects payload sessionKey unless hooks.allowRequestSessionKey=true.hooks.defaultSessionKey for fixed ingress routing.hooks.allowedSessionKeyPrefixes to constrain explicit routing keys.Recommended Configuration
{
"hooks": {
"enabled": true,
"token": "${OPENCLAW_HOOKS_TOKEN}",
"defaultSessionKey": "hook:ingress",
"allowRequestSessionKey": false,
"allowedSessionKeyPrefixes": ["hook:"]
}
}
Credit
Thanks @alpernae for responsible reporting.
High Basis: The source's own band: HIGH
2.0.0-beta3, fixed 2026.2.12 (semver)2026.2.12
2026.2.12npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0