Security context

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

janhq/jan
main @ 1b758b9
18
Fixes
3
CVEs
CRITICAL
Peak severity
40.0%
Coverage
Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
src-tauri/src/core/filesystem/commands.rs: most-fixed (2 issues). Treat as high-risk during review.
12 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: Insecure handling of local file paths during deletion and write operations allows arbitrary file manipulation outside the designated Jan data directory. Multiple traversal vectors were found in filesystem commands.
DNS Rebinding: The local API server's proxy did not validate the HTTP Host header, exposing it to DNS rebinding attacks that let external web pages execute unauthorized local API requests.
CORS Misconfiguration: Reflecting untrusted origins in Access-Control-Allow-Origin headers allowed malicious cross-origin sites to interact with the local API proxy.