Security context

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

potpie-ai/potpie
main @ 8dd175b
19
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
(RepoCache: 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.

Auth Bypass: Session mapping errors due to unnormalized user identifiers ('uid' vs 'user_id') and incorrect decorator application previously allowed complete bypass of endpoint authorization checks.
Credential Leak: Plaintext authentication tokens were historically persisted within cached repository `.git/config` configurations and logged via debug outputs, exposing user OAuth credentials to other local users or administrators.
Path Traversal: Agent execution tools capable of reading or writing code files failed to restrict paths to the workspace root, enabling malicious paths to traverse and access arbitrary host files.