openclaw
Affected
- introduced
2.0.0-beta3, fixed2026.2.14(semver)
Fixed versions
2026.2.14
Fix
- Fixed version
2026.2.14npm install [email protected]
Advisory
Also known as: CVE-2026-28393
OpenClaw's hook transform module path allows traversal and arbitrary JavaScript module loading
Summary
OpenClaw hook mapping transforms could be loaded via absolute paths or .. traversal, allowing arbitrary JavaScript module loading/execution in the gateway process when an attacker can modify hooks configuration.
Affected Versions
Details
hooks.mappings[].transform.module is dynamically imported and executed during webhook processing. Path resolution previously accepted absolute paths and did not enforce containment for relative paths, so a config-controlled transform could resolve outside the intended transforms directory.
Impact
If an attacker can write the OpenClaw config (or otherwise update hooks config through authenticated configuration mechanisms), they could point a hook mapping transform at an arbitrary module on disk and execute code with the gateway process privileges.
Reproduction (config-controlled module load)
.. traversal).Fix
Transform loading is now constrained to the OpenClaw transforms root directory:
~/.openclaw/hooks/transformshooks.transformsDir must be within that directorytransform.module must be within the selected transforms directoryAttempts to escape the root (absolute paths outside, .. traversal) are rejected.
Fix commit(s):
Credits
OpenClaw thanks @akhmittra for reporting.
High Basis: The source's own band: HIGH
2.0.0-beta3, fixed 2026.2.14 (semver)2026.2.14
2026.2.14npm 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