CVE-2026-45003: OpenClaw: Workspace dotenv files cannot override connector endpoint hosts
OpenClaw 2026.4.21 and earlier loaded connector endpoint variables from a workspace .env file. A malicious repo could set Matrix, Mattermost, IRC or Synology endpoint hosts and redirect OpenClaw's traffic away from the endpoint the operator configured. Fixed in openclaw 2026.4.22.
Published May 4, 2026 · Updated May 19, 2026 · Analysis Oct 28, 2026
What an attacker can do
OpenClaw reads dotenv files from the workspace. In affected versions those files could define the variables that tell a connector where to talk to: Matrix homeserver values (including per-account suffixes), Mattermost, IRC and Synology-related hosts, and generic base-URL or API-host overrides (CWE-427, CWE-610).
The attacker needs a place where a workspace .env will be read: a cloned repository, a shared project folder, or a downloaded template. The victim runs OpenClaw there. The connector then talks to the attacker's server instead of the real one. Traffic that goes with it, such as messages and tokens sent to that connector, can be read or tampered with on the attacker's host.
The scope is limited to connectors that read these endpoint variables. Trusted global runtime dotenv loading is a separate path and stays supported. The CVSS 4.0 vector rates the integrity impact low.
Who is affected
The npm package openclaw at 2026.4.21 and earlier, in setups that use the Matrix, Mattermost, IRC or Synology connectors and open workspaces that you do not fully control.
npm ls -g openclawSearch workspaces for suspicious endpoint settings:
grep -rniE 'homeserver|base_url|api_host|mattermost|synology|irc' .envopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.21
- Fixed in
- 2026.4.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.22:
npm install -g [email protected]The fix (commit 0623079) makes workspace .env loading block those endpoint variables, including per-account Matrix homeserver suffixes and generic base-URL or API-host overrides. The global runtime dotenv is not affected by the block. The advisory names no workaround.
How to tell if you were hit
Open the .env files in repositories and workspaces you run OpenClaw in, and look for connector host, base URL or API host variables that point to hosts you do not recognise. Check DNS and firewall logs from the OpenClaw host for connections to unfamiliar Matrix, Mattermost, IRC or Synology-style endpoints. Beam records the files agents touch and the shell commands they run, which would show a modified workspace .env.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Workspace dotenv files cannot override connector endpoint hosts.
Affected Packages / Versions
- Package: openclaw (npm)
- Affected versions: <= 2026.4.21
- Fixed version: 2026.4.22
Impact
A workspace .env file could set connector endpoint variables for Matrix, Mattermost, IRC, or Synology-related connectors and redirect runtime traffic away from the operator-configured endpoint.
Fix
Workspace .env loading now blocks those endpoint variables, including per-account Matrix homeserver suffixes and generic base-url/API-host style overrides. Trusted global runtime dotenv loading remains separate.
Fix Commit(s)
- 0623079e98abf7202591f1b04a89755eb7ec9272
Verification
- The fix commit is contained in the public v2026.4.22 tag.
- [email protected] is published on npm and the compiled package contains the fix.
- Focused regression coverage for this path passed before publication.
OpenClaw thanks @qi-scape for reporting.
Credited to qi-scape.
Questions
- Is a global .env affected?
No. The fix blocks the endpoint variables only in workspace dotenv files. Trusted global runtime dotenv loading remains separate.
- Which connectors are named?
Matrix, Mattermost, IRC and Synology-related connectors, per the advisory.
- What is the fixed version of CVE-2026-45003?
openclaw 2026.4.22, which is on npm. Versions up to and including 2026.4.21 are affected.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
