Security context

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

sqlc-dev/sqlc
main @ ecec179
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Information Disclosure: 1 prior fix. Scrutinize any change in this area.
internal/cmd/generate.go: 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.

Path Traversal: Malicious or compromised plugins can return arbitrary output file paths, allowing them to overwrite arbitrary files outside the designated output directory on the host during code generation.
Information Disclosure: Unfiltered environment variables can leak sensitive credentials (such as SQLC_AUTH_TOKEN) to untrusted or third-party plugin processes executed by the tool.