What happened
CVE-2026-142485 is a path traversal in letta-code's permission checker (isWithinAllowedDirectories), where an attacker-controlled file_path can escape the allowed directories. This is the same component family as previously disclosed letta-code permission flaws (CVE-2026-138207, etc.).
Why it matters
letta-code runs commands/files on the agent's behalf. A path-traversal gap in the permission checker lets a crafted file reference bypass the sandbox boundary and access files the agent should not read or write.
Attack vector
The isWithinAllowedDirectories check in the Permission Checker is vulnerable to path traversal via the file_path argument, allowing a caller to read/write outside the permitted directory set.
Affected systems
letta-ai letta-code up to 0.34.77 (src/permissions/checker.ts)
Mitigation
Upgrade to a letta-code release that hardens isWithinAllowedDirectories; normalize/realpath paths before containment checks.