Security context

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

intitni/copilotforxcode
main @ a98f1f2
2
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
Core/Sources/ChatGPTChatTab/Chat.swift: 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.

Command Injection: Untrusted file paths and URIs were interpolated directly into shell command strings executed via `/bin/bash`. If malicious inputs are handled, it can lead to arbitrary code execution in the context of the Xcode helper application. Future changes must strictly use environment variables or process arguments instead of shell interpolation.
Auth Bypass: The application failed to respect the project-specific 'Prompt to Code' disablement configuration, allowing suggestions to be generated for disabled projects. Developers must consistently enforce workspace-level permissions and opt-ins across all suggestion command handlers.