Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

langchain-ai/deepagentsjs
main @ 9a9fce9
4
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
CI/CD: most-fixed (1 issue). Treat as high-risk during review.
4 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Sandbox Escape: Untrusted agent code executing within the QuickJS REPL sandbox could leverage dangerous built-in VFS file system globals (readFile/writeFile) to access or modify arbitrary files on the host system. Developers must ensure these globals are completely stripped from the sandbox environment.
Auth Bypass: Failing to enforce filesystem middleware permissions (read, write, edit rules) combined with absolute path validation allows agents to bypass intended workspace boundaries and access unauthorized directories.
Path Traversal: Insufficiencies in file path resolution allow path traversal sequences, tilde expansion, and platform-specific absolute paths to escape designated workspaces. Rigid canonicalization and prefix checks are required to prevent reading or writing sensitive host files.