@evomap/evolver: Path Traversal in `evolver fetch` default-branch `safeId` allows Hub-controlled overwrite of project files (RCE)
GHSA-cfcj-hqpf-hccf · published 2026-05-05
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.70.0-beta.5
Remote code execution in the victim's environment with the privileges of the evolver process. Because the loop daemon (node index.js run --loop) is the documented long-running mode, the malicious code typically gets executed within seconds of the next iteration. Attacker can also overwrite package.json (allowed extension), SKILL.md, .env-adjacent .json/.yaml/.yml config files, and any whitelisted file already present in the cwd. Trust boundary violation: evolver fetch is presented as a download operation; users would not expect it to overwrite the application binary or project files. The --out branch was hardened against exactly this; the default branch was missed. …
Upgrade @evomap/evolver to 1.70.0-beta.5 or later.
Reject safeId values that are not single non-traversing path segments before joining, or reuse the same path.relative check used in the --out branch. Minimal patch around index.js:849: Defense in depth — apply the existing traversal check to the default branch as well: Additionally, consider: Removing . from the regex allow-list (skill IDs typically don't need dots). Verifying a Hub-supplied signature over the response payload before writing any file to disk. Disallowing bundled-file safeName values that match top-level project files (index.js, package.json, package-lock.json, etc.) regardless of outDir.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @evomap/evolver | npm | <= 1.70.0-beta.4 | 1.70.0-beta.5 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalEvolver: Command Injection via `execSync` in `_extractLLM()` function allows Remote Code Execution@evomap/evolver
- High@evomap/evolver's validator sandbox allowlist permits `npm`/`npx`, yielding RCE from Hub-delivered validation tasks via lifecycle scripts@evomap/evolver
- HighEvolver: Path Traversal via `--out` flag in `fetch` command allows Arbitrary File Write@evomap/evolver
- Medium@evomap/evolver has an unbounded request body in proxy /asset/submit that causes persistent disk-exhaustion DoS@evomap/evolver
- MediumEvolver has Prototype Pollution via `Object.assign()` in its mailbox store operations@evomap/evolver
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.