# GHSA-7ff8-xjh3-mgh6: OpenClaw's non-default autoAllowSkills setting could bypass on-miss exec prompt

> Attackers can bypass execution approval prompts in OpenClaw by exploiting skill-name collisions when autoAllowSkills is enabled.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Not stated
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Mar 2026

## What is GHSA-7ff8-xjh3-mgh6?

GHSA-7ff8-xjh3-mgh6 is a vulnerability in openclaw, published on 3 Mar 2026. 

### Official description

### Summary
In `openclaw` versions up to and including `2026.2.22-2`, a non-default exec-approval configuration could allow a skill-name collision to bypass an `ask=on-miss` prompt.

When `autoAllowSkills=true`, a path-scoped executable such as `./skill-bin` could resolve to basename `skill-bin`, satisfy the `skills` allowlist segment, and run without prompting for approval.

### Affected Packages / Versions
- Package: `npm openclaw`
- Affected versions: `<= 2026.2.22-2`
- Patched versions: `>= 2026.2.23` (released)

### Configuration Scope (Not Default)
This behavior requires non-default settings and does not affect default installs.

Required conditions:
- `autoAllowSkills=true` (default is `false`)
- `system.run` with `security=allowlist`
- `ask=on-miss`

### Technical Details
The allowlist evaluator accepted `skills` satisfaction by bin-name match, so `./skill-bin` could match `skillBins.has("skill-bin")` after resolution.

The fix hardens skill auto-allow matching by requiring:
- a pathless invocation token (no `/` or `\\`), and
- a trusted resolved executable path for that skill bin on the machine where skills run.

This preserves normal `skill-bin ...` behavior while preventing `./<skill-bin>` and absolute-path basename collisions from auto-satisfying `skills`.

### Impact
In affected non-default configurations, approval prompts could be skipped for commands that should have required operator confirmation.

### Fix Commit(s)
- `ffd63b7a2c4c6d5aeb4710ef951d5794ad7ad77b` (`fix(security): trust resolved skill-bin paths in allowlist auto-allow`)

OpenClaw thanks @tdjackey for reporting.

## Which versions are affected by GHSA-7ff8-xjh3-mgh6?

2 open source packages ship an affected version, including openclaw.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openclaw` | npm | All versions | 2026.2.23 |
| `openclaw` | npm | All versions | 2026.2.23 |

## How do I fix GHSA-7ff8-xjh3-mgh6?

Upgrade openclaw to 2026.2.23 or later.

## Is GHSA-7ff8-xjh3-mgh6 being exploited?

There is no known exploitation of GHSA-7ff8-xjh3-mgh6 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-7ff8-xjh3-mgh6 and fix it if it is affected.

What it is: GHSA-7ff8-xjh3-mgh6 is a vulnerability in openclaw, published on 3 Mar 2026. 
Exploitation: There is no known exploitation of GHSA-7ff8-xjh3-mgh6 in the wild and no public exploit code.

Affected packages and fixed versions:
- openclaw (npm): affected all versions; fixed in 2026.2.23
- openclaw (npm): affected all versions; fixed in 2026.2.23

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-7ff8-xjh3-mgh6/ (Markdown: https://insights.sbomify.com/GHSA-7ff8-xjh3-mgh6/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-7ff8-xjh3-mgh6

---
From sbomify Insights: https://insights.sbomify.com/GHSA-7ff8-xjh3-mgh6/
Summaries are generated and may contain mistakes; the official description above is the record.
