# GHSA-cqmh-pcgr-q42f: @axonflow/openclaw fix introduces plugin cache and credential-file permission hardening

> Local attackers can read registration credentials and cache data due to insecure file permissions in the AxonFlow plugin.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 6 May 2026

## What is GHSA-cqmh-pcgr-q42f?

GHSA-cqmh-pcgr-q42f is a vulnerability in @axonflow/openclaw, published on 6 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

## Summary

Two related permission defects in this AxonFlow plugin allowed registration credentials and cache state to be readable by other local users on hosts where the calling user's home directory was at the conventional `0755` mode.

## Affected versions

Versions 1.3.2 and below.

## Impact

1. **Cache and config directory mode.** The plugin's directories under `~/.config/axonflow/` and `~/.cache/axonflow/` were created with the umask-derived default mode (often `0755`) on first use and not subsequently re-validated. On systems where `~/.config/` is itself `0755`, the plugin's registration record (including a hashed credential and `instance_id`) was traversable by other local users.
2. **Credential file mode at load time.** The plugin loaded its `try-registration.json` credential file without validating that the file mode was `0600`. A registration file written by a misconfigured tool, copied across systems, or restored from backup could end up world-readable, and the plugin would silently use it.

The fix restores `0700` on all plugin directories on every plugin invocation (not only first creation) and refuses to load credential files with non-`0600` modes.

## Remediation

Upgrade to the patched plugin version listed under Vulnerabilities. On startup the plugin will repair existing directory modes; existing credential files with overly permissive modes will be refused, requiring the user to re-register or `chmod 0600` the file.

## Credit

Identified by AxonFlow internal security review.

## Which versions are affected by GHSA-cqmh-pcgr-q42f?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@axonflow/openclaw` | npm | All versions | 2.0.0 |
| `@axonflow/openclaw` | npm | All versions | 2.0.0 |

## How do I fix GHSA-cqmh-pcgr-q42f?

Upgrade @axonflow/openclaw to 2.0.0 or later.

## Is GHSA-cqmh-pcgr-q42f being exploited?

There is no known exploitation of GHSA-cqmh-pcgr-q42f in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-cqmh-pcgr-q42f and fix it if it is affected.

What it is: GHSA-cqmh-pcgr-q42f is a vulnerability in @axonflow/openclaw, published on 6 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-cqmh-pcgr-q42f in the wild and no public exploit code.

Affected packages and fixed versions:
- @axonflow/openclaw (npm): affected all versions; fixed in 2.0.0
- @axonflow/openclaw (npm): affected all versions; fixed in 2.0.0

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-cqmh-pcgr-q42f/ (Markdown: https://insights.sbomify.com/GHSA-cqmh-pcgr-q42f/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-cqmh-pcgr-q42f

---
From sbomify Insights: https://insights.sbomify.com/GHSA-cqmh-pcgr-q42f/
Summaries are generated and may contain mistakes; the official description above is the record.
