CVE-2026-55747: CWE-22 Path Traversal in The-Pocket PocketFlow (pocketflow-coding-agent cookbook example)
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.
AI Analysis
Technical Summary
The pocketflow-coding-agent cookbook example in The-Pocket/PocketFlow contains a path traversal vulnerability (CWE-22) due to a helper function that uses os.path.join(workdir, p) without performing canonicalization or containment checks. This helper is used by file-access tools such as ReadFile, ListFiles, PatchRead, and PatchApply without safeguards, enabling an attacker to potentially access files outside the intended directory. The issue is limited to the illustrative example code and does not affect the core PocketFlow library API. No patch or official remediation guidance is currently available.
Potential Impact
The vulnerability allows unauthorized file access via path traversal when the vulnerable example code is used in production. Since it affects only the cookbook example and not the core library, the impact is limited to applications that copy this insecure pattern. Confidentiality and integrity of files may be compromised, but availability is not affected. There are no known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid deploying the vulnerable example code in production or implement proper path canonicalization and containment checks to prevent path traversal.
CVE-2026-55747: CWE-22 Path Traversal in The-Pocket PocketFlow (pocketflow-coding-agent cookbook example)
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.
CVSS v3.1
Score 6.8medium
Affected software
The-Pocket
PocketFlow (pocketflow-coding-agent cookbook example)
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The pocketflow-coding-agent cookbook example in The-Pocket/PocketFlow contains a path traversal vulnerability (CWE-22) due to a helper function that uses os.path.join(workdir, p) without performing canonicalization or containment checks. This helper is used by file-access tools such as ReadFile, ListFiles, PatchRead, and PatchApply without safeguards, enabling an attacker to potentially access files outside the intended directory. The issue is limited to the illustrative example code and does not affect the core PocketFlow library API. No patch or official remediation guidance is currently available.
Potential Impact
The vulnerability allows unauthorized file access via path traversal when the vulnerable example code is used in production. Since it affects only the cookbook example and not the core library, the impact is limited to applications that copy this insecure pattern. Confidentiality and integrity of files may be compromised, but availability is not affected. There are no known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid deploying the vulnerable example code in production or implement proper path canonicalization and containment checks to prevent path traversal.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-06-17T12:59:17.621Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a72e5c6bf8831d539734f55
Added to database: 08/05/2026, 07:27:02 UTC
Last enriched: 08/12/2026, 14:23:36 UTC
Last updated: 09/17/2026, 22:01:36 UTC
Views: 26
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.