# GHSA-V68M-49GM-5HGW: Startup update check executes code from node\_modules in the current working directory

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-11-23
- Modified: 2026-11-23

## Affected versions

- @claude-flow/cli (npm): from 3.0.0-alpha.83, fixed in 3.80.1
- claude-flow (npm): from 3.0.0-alpha.65, fixed in 3.80.1
- ruflo (npm): fixed in 3.80.1

## Description

### Impact

On startup, most `ruflo` / `claude-flow` CLI commands run a background update check. To find the installed version of each `@claude-flow/*` package, `getInstalledVersion()` in `v3/@claude-flow/cli/src/update/checker.ts` resolved `<pkg>/package.json` with `require.resolve(..., { paths: [process.cwd()] })` and then loaded the result with `require()`.

Resolution therefore started in the directory the user ran the command from. A repository that contains a crafted `node_modules/@claude-flow/<pkg>/package.json` with an `exports` map pointing `./package.json` at a JavaScript file gets that file executed, with the user's privileges, as soon as anyone runs e.g. `npx ruflo status` inside it. No prompt or flag is required.

The check is skipped in CI, with `--no-update`, for `doctor --json` and observe-only commands, and at most once per check interval.

### Patches

Fixed in 3.80.1 of `ruflo`, `claude-flow` and `@claude-flow/cli` (ruvnet/ruflo#5072). The version is now resolved only from the CLI's own install location and `package.json` is read with `JSON.parse(fs.readFileSync())`, so it is never executed. A regression test plants the malicious packages in the working directory.

### Workarounds

Upgrade. Otherwise pass `--no-update` (or set `CI=1`) when running the CLI inside an untrusted checkout.

### Credit

Found while fixing the same class of issue in ruvector (GHSA-8pv4-hqq5-m2wv).

## References

- https://github.com/ruvnet/ruflo/security/advisories/GHSA-v68m-49gm-5hgw

Page: https://cve.now/GHSA-V68M-49GM-5HGW

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
