{"id":"GHSA-3qpv-xf3v-mm45","summary":"OpenClaw: Workspace `.env` can override the bundled hooks root and load attacker hook code","details":"## Summary\nWorkspace `.env` can override the bundled hooks root and load attacker hook code\n\n## Current Maintainer Triage\n- Status: open\n- Normalized severity: high\n- Assessment: v2026.3.28 still lets workspace .env override OPENCLAW_BUNDLED_HOOKS_DIR, which can replace trusted default-on bundled hooks from an untrusted workspace.\n\n## Affected Packages / Versions\n- Package: `openclaw` (npm)\n- Latest published npm version: `2026.3.31`\n- Vulnerable version range: `\u003c=2026.3.28`\n- Patched versions: `\u003e= 2026.3.31`\n- First stable tag containing the fix: `v2026.3.31`\n\n## Fix Commit(s)\n- `330a9f98cb29c79b1c16a2117e03d6276a0d6289` — 2026-03-31T19:25:12+09:00\n\nOpenClaw thanks @nexrin for reporting.","aliases":["CVE-2026-41336"],"modified":"2026-05-06T23:41:29.196691Z","published":"2026-04-02T21:00:16Z","database_specific":{"github_reviewed_at":"2026-04-02T21:00:16Z","nvd_published_at":null,"cwe_ids":["CWE-15","CWE-829"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41336"},{"type":"WEB","url":"https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"},{"type":"WEB","url":"https://github.com/openclaw/openclaw/releases/tag/v2026.3.31"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override"}],"affected":[{"package":{"name":"openclaw","ecosystem":"npm","purl":"pkg:npm/openclaw"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2026.3.31"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2026.3.28","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-3qpv-xf3v-mm45/GHSA-3qpv-xf3v-mm45.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}