AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-27485: OpenClaw: Reject symlinks in local skill packaging script

mediumCVSS 4.0 4.6GHSA-r6h2-5gqq-v5v6

OpenClaw's skill packaging helper, skills/skill-creator/scripts/package_skill.py, follows symlinks when it builds a .skill archive. Packaging a crafted skill folder can copy files from outside it into the archive. It is a local, low-severity flaw, fixed in openclaw 2026.2.19.

Published Feb 20, 2026 · Updated Feb 23, 2026 · Analysis Nov 16, 2026

What an attacker can do

package_skill.py is a helper that skill authors run by hand. Before the fix it followed symlinks while adding files to the .skill archive. If a skill directory holds a symlink to a file outside the skill root, such as a key or config file on the packaging machine, the archive embeds that file's contents.

The attacker must get you to package skill contents they control, for example a skill folder you received or cloned. Then you must run the script and share the resulting .skill file. The leak happens only when the artifact is shared.

The advisory is explicit about the limits. It is not reachable from the OpenClaw gateway or chat runtime. There is no remote trigger, and no Zip Slip on extraction. The risk is accidental disclosure of local files from the machine that builds the package, which matters most to people who publish skills.

Who is affected

openclaw (npm) versions up to and including 2026.2.18, only for people who run skills/skill-creator/scripts/package_skill.py on skill directories that are not their own. Ordinary gateway and chat use is not affected, per the advisory.

Check the installed version:

npm ls -g openclaw

To look for risk in a skill folder before you package it, list symlinks:

find ./my-skill -type l

openclaw

Ecosystem
npm
Affected
<= 2026.2.18
Fixed in
2026.2.19
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.19:

npm install -g [email protected]

The fix makes the packaging script reject symlinks, and adds tests for symlinked files and directories. The advisory text mentions 2026.2.18 as the planned release, but the package data lists 2026.2.19 as the patched version, so use that one. If you cannot upgrade, delete symlinks from skill folders before packaging.

How to tell if you were hit

Inspect .skill archives you built or received for files that do not belong to the skill, such as keys, env files or config from other directories. Unzip into an empty directory and read the file list. Run find with -type l on any skill folder you packaged from a third party, and re-check archives you already published.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Vulnerability

skills/skill-creator/scripts/package_skill.py (a local helper script used when authors package skills) previously followed symlinks while building .skill archives.

If an author runs this script on a crafted local skill directory containing symlinks to files outside the skill root, the resulting archive can include unintended file contents.

Severity and Exposure

  • Severity: Low
  • Execution context: local/manual workflow only (skill author packaging step)
  • No remote trigger: this is not reachable via normal OpenClaw gateway/chat runtime paths
  • No extraction Zip Slip in this finding: this issue is limited to packaging-time symlink following

Impact

  • Potential unintentional disclosure of local files from the packaging machine into a generated .skill artifact.
  • Requires local execution of the packaging script on attacker-controlled skill contents.

Affected Components

  • skills/skill-creator/scripts/package_skill.py

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published version during triage: 2026.2.17
  • Vulnerable version range: <= 2026.2.17
  • Planned patched version (next release): 2026.2.18

Remediation

  • Reject symlinks during skill packaging.
  • Add regression tests for symlink file and symlink directory cases.
  • Update packaging guidance to document the symlink restriction.

Fix Commit(s)

  • c275932aa4230fb7a8212fe1b9d2a18424874b3f
  • ee1d6427b544ccadd73e02b1630ea5c29ba9a9f0

Related PR

  • https://github.com/openclaw/openclaw/pull/20796

Release Process Note

patched_versions is pre-set to the planned next release (2026.2.18). Once npm [email protected] is published, this advisory is ready to publish without additional edits.

Thanks @aether-ai-agent for reporting.

Credited to aether-ai-agent.

Questions

Can CVE-2026-27485 be exploited remotely?

No. The advisory says there is no remote trigger and it cannot be reached through the OpenClaw gateway or chat runtime. It needs a local run of the packaging script.

Who is at risk?

Skill authors who package skill directories that came from someone else, since a symlink in them can pull local files into the archive.

Which version fixes it?

openclaw 2026.2.19. Versions through 2026.2.18 are listed as vulnerable.

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