PocketFlow - Path Traversal in pocketflow-coding-agent Cookbook Example File Tools
The-Pocket PocketFlow (pocketflow-coding-agent cookbook example)
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| The-Pocket PocketFlow (pocketflow-coding-agent cookbook example) |
| No fix yet |
Original description
The pocketflow-coding-agent cookbook example in The-Pocket/PocketFlow implements a helper as a thin os.path.join(workdir, p) wrapper with no canonicalization or containment check, used unguarded by the ReadFile, ListFiles, PatchRead, and PatchApply file-access tools. Severity reflects that this affects an illustrative cookbook example rather than a core library API; applications that copy this pattern into production are affected.
From the CVE record · TuranSec