NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-45003: OpenClaw: Workspace dotenv files cannot override connector endpoint hosts

mediumCVSS 4.0 5.3GHSA-55cf-xx38-4p9p

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 openclaw

Search workspaces for suspicious endpoint settings:

grep -rniE 'homeserver|base_url|api_host|mattermost|synology|irc' .env

openclaw

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 entries