CVE-2026-55747
JSON

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 packageVersionsReported by
The-Pocket PocketFlow (pocketflow-coding-agent cookbook example)0CVE List

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2026-55747 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-55747 changed 2026-10-24Public domain