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

CVE-2026-28447: OpenClaw has a Path Traversal in Plugin Installation

highCVSS 4.0 7.0 · 3.1 8.1GHSA-qrq5-wjgg-rvqw

OpenClaw's plugin installer builds the install directory from the plugin's `package.json` name without validation. A malicious plugin named `@malicious/..` writes its files into the parent of the extensions directory, the OpenClaw state directory. Versions 2026.1.20 up to but not including 2026.2.1 are affected. Upgrade to 2026.2.1.

Published Feb 17, 2026 · Updated Mar 10, 2026 · Analysis Nov 1, 2026

What an attacker can do

The installer calls unscopedPackageName() on the manifest name and joins the result onto the extensions directory. For @malicious/.. the result is .., so path.join(extensionsDir, "..") resolves to the parent, by default ~/.openclaw/, instead of a subfolder of ~/.openclaw/extensions/. Plugin files then land in the state directory and can overwrite files there.

On Windows, affected versions also failed to strip backslashes from the derived name, so crafted pluginId strings can climb further, within the privileges of the user running OpenClaw.

The attacker needs the victim to install untrusted plugin content, for example with openclaw plugins install. That is the user-interaction step in the CVSS vectors. The advisory notes that plugin installation is often an operator-only task, sometimes done on a separate machine, which lowers the risk to the main gateway host. Where untrusted plugins are installed, an attacker can overwrite state and configuration files, which affects integrity and availability and can lead to code execution if OpenClaw later loads what was overwritten.

Who is affected

The npm package openclaw from 2026.1.20 up to but not including 2026.2.1. Earlier releases and 2026.2.1 or later are outside the range. Only hosts where someone installs a plugin from an untrusted source are at risk.

npm ls -g openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
>= 2026.1.20, < 2026.2.1
Fixed in
2026.2.1
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.1.

npm install -g [email protected]

Commit d03eca84 validates plugin IDs and checks that the resolved install directory stays inside the configured extensions base directory. The advisory gives no workaround beyond that. Until you upgrade, install plugins only from sources you trust and do the installs on a machine that is not your gateway host.

How to tell if you were hit

Look in the OpenClaw state directory (default ~/.openclaw/) for plugin files that sit beside the extensions folder rather than inside it, such as a package.json or plugin sources at the top level, and for changed timestamps on existing state files. Review installed plugins and their manifest name values for .. segments, for example scoped names ending in /... Check shell history for openclaw plugins install of sources you do not recognise.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw's plugin installation path derivation could be abused by a malicious plugin package.json name to escape the intended extensions directory and write files to a parent directory.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: >= 2026.1.20, < 2026.2.1
  • Fixed: >= 2026.2.1
  • Latest published as of 2026-02-14: 2026.2.13 (not affected)

Details

In affected versions, the plugin installer derives the on-disk install directory from the plugin manifest name without robust validation.

Example (POSIX / macOS / Linux):

  • Manifest name: @malicious/..
  • unscopedPackageName("@malicious/..") yields ..
  • The install directory becomes path.join(extensionsDir, ".."), which resolves to the parent of the extensions directory.

This can cause plugin files to be written into the OpenClaw state directory (default ~/.openclaw/) rather than a subdirectory of ~/.openclaw/extensions/.

Note: on Windows, affected versions also failed to sanitize backslashes (\\) in the derived directory name, which can enable deeper traversal via crafted pluginId strings.

Impact

This issue requires a user/operator to install untrusted plugin content (for example via openclaw plugins install). In many deployments, plugin installation is an operator-only action and may be performed on a separate machine; that operational separation significantly reduces exposure for the primary gateway/runtime host.

On hosts where untrusted plugins are installed, this can lead to unintended file writes outside the extensions directory (potentially overwriting files under the OpenClaw state directory). On Windows, the traversal surface may extend further, within the privileges of the user running OpenClaw.

Fix

Fixed in openclaw 2026.2.1 by validating plugin IDs and ensuring the resolved install directory remains within the configured extensions base directory.

Fix Commit(s)

  • d03eca8450dc493b198a88b105fd180895238e57

Thanks @logicx24 for reporting.

Credited to logicx24.

Questions

Does CVE-2026-28447 need user interaction?

Yes. An operator or user must install the untrusted plugin, for example with openclaw plugins install. The advisory says this is often an operator-only action.

Which versions are affected?

From 2026.1.20 up to but not including 2026.2.1. The advisory says 2026.2.13 was the latest release at that time and is not affected.

Is Windows worse off?

Somewhat. Affected versions also failed to sanitize backslashes there, so crafted pluginId strings can traverse deeper, within the privileges of the OpenClaw user.

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