# GHSA-RX87-V2FR-76XF: Repository-controlled files are injected into the model's context as the user's own memory or learned patterns

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

## Affected versions

- @claude-flow/cli (npm): through 3.71.3
- claude-flow (npm): through 3.71.3
- ruflo (npm): through 3.71.3

## Description

### Impact
With ruflo hooks installed globally (`~/.claude/settings.json` running the home-level `hook-handler.cjs`), files committed in a cloned repository are promoted into higher-trust model context:

1. **Persistent memory poisoning.** On every Stop, `doSync` (`.claude/helpers/auto-memory-hook.mjs`, around lines 527-575, into `v3/@claude-flow/memory/src/auto-memory-bridge.ts` lines 767-826) reads the repo's committed `.claude-flow/data/auto-memory-store.json`. Entries tagged `learnings` or `insight` above a confidence threshold, which the attacker sets, are appended verbatim to `~/.claude/projects/<key>/memory/*.md` and indexed into `MEMORY.md`. Claude Code then loads them every session as the user's own memory, and they remain after the repo file is removed. There is no origin check, no injection or secret scan, and no length cap.
2. **Per-prompt injection.** A committed `.claude-flow/data/ranked-context.json` with broad `words` matches almost any prompt. Its `summary` (80 characters, newlines kept) is printed under `[INTELLIGENCE] Relevant patterns for this task` (`intelligence.cjs` around lines 828-834, `hook-handler.cjs` around lines 862-868), with no sanitizing and no "untrusted data" label. The mods `route` copy strips control characters but is also unlabelled.

There is no code execution. This is prompt injection that gains authority and persists.

### Fix
- Only sync or show entries this machine wrote, using a local HMAC or origin marker, and ignore git-tracked files.
- Run the text through the learning-loop `scan()`, strip control characters, and cap and flatten it.
- Label the block as project data, the way `guidance/projection.ts` does.

## References

- https://github.com/ruvnet/ruflo/security/advisories/GHSA-rx87-v2fr-76xf

Page: https://cve.now/GHSA-RX87-V2FR-76XF

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