Security context

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

molunerfinn/picgo
dev @ 01130f2
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Path Traversal: 1 prior fix. Scrutinize any change in this area.
preload: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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: Exposing raw Electron APIs directly to the renderer process allows compromised or malicious remote content to escape the sandbox and execute arbitrary code on the host system. The fix instituted a secure preload bridge utilizing contextIsolation.
Path Traversal: Insecure handling of uploader file paths allowed arbitrary file deletion on the host system. The application now enforces path canonicalization and prefix checks using fs.remove to guarantee files reside strictly inside the temporary directory.