6.8medium
PocketFlow - Path Traversal in pocketflow-coding-agent Cookbook Example File Tools
- Severity
- 6.8medium CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.35% (higher than 21% of CVEs)
- Published
- Last changed
- Assigned by
- TuranSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| The-Pocket PocketFlow (pocketflow-coding-agent cookbook example) | 0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
El ejemplo de recetario de pocketflow-coding-agent en The-Pocket/PocketFlow implementa una función auxiliar ’_path(workdir, p)’ como un envoltorio ligero de os.path.join(workdir, p) sin canonicalización ni verificación de contención, utilizado sin protección por las herramientas de acceso a archivos ReadFile, ListFiles, PatchRead y PatchApply. Debido a que os.path.join devuelve una ’p’ absoluta sin cambios (ignorando workdir) y no resuelve secuencias ’.. / ’, una invocación de agente cuyos argumentos de herramienta de archivo incluyen una ruta absoluta o una secuencia de recorrido puede leer o escribir archivos fuera del directorio de trabajo configurado. La gravedad refleja que esto afecta a un ejemplo ilustrativo de recetario en lugar de a una API de biblioteca central; las aplicaciones que copian este patrón en producción se ven afectadas.
References
| https://github.com/The-Pocket/PocketFlow | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55747 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-55747 changed 2026-10-24 | Public domain |