Security context

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

pythagora-io/gpt-pilot
main @ 9b763fd
6
Fixes
1
CVEs
CRITICAL
Peak severity
40.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
core/telemetry: most-fixed (1 issue). Treat as high-risk during review.
6 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.

Malicious Code: The telemetry module was compromised to execute malicious payloads using child process spawns, presenting a direct risk of credential theft and system takeover.
Auth Bypass: Discrepancies in JWT payload serialization (such as using 'id' instead of '_id' or 'userId') allowed token verification to bypass active database checks or fail to extract valid identity information.
Privilege Escalation: Signing entire user objects in JWT payloads allowed stale state and modified privileges to persist in the client token without verification against active database records.