Security context

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

etiennelescot/n8n-as-code
main @ 6194147
17
Fixes
0
CVEs
HIGH
Peak severity
46.7%
Coverage
Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
packages/vscode-extension/src/services/proxy-service.ts: most-fixed (4 issues). Treat as high-risk during review.
7 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.

Path Traversal: The local shell backend of the VS Code AI agent allowed filesystem escape outside the workspace root, remedied by enforcing a virtual sandbox mode. Ensure all file operations inside extension runtimes validate paths against strict boundaries.
Cross-Origin Communication Bypass: The extension relies on postMessage bridges for critical features like clipboard access. Earlier designs suffered from weak or static nonce validations, allowing malicious cross-origin pages or iframes to spoof events and extract local data.
Path Traversal: Git worktree and directory operations did not canonicalize paths before execution, enabling arbitrary file/directory deletion or traversal. Ensure clean realpath-based prefix matching on all dynamic paths.