Security context

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

linshenkx/prompt-optimizer
develop @ ce6d1cf
9
Fixes
0
CVEs
HIGH
Peak severity
42.9%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
Proxy: most-fixed (2 issues). Treat as high-risk during review.
5 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: Reactive objects sent across the Electron IPC boundary allowed escaping the sandbox. Safe serialization must be enforced for all payloads sent through the Electron API.
Path Traversal: The backup restoration feature used unzipSync without validating extracted target paths, leading to potential arbitrary file writes. Canonicalization and prefix verification are required on all archive extractions.
Prototype Pollution: Unvalidated key assignment allowed potential prototype pollution via magic properties such as __proto__. Strict key blocklisting is required when processing model parameter payloads.