Security context

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

python-cmd2/cmd2
main @ b17b1bd
2
Fixes
0
CVEs
MEDIUM
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
.github/workflows: most-fixed (1 issue). Treat as high-risk during review.
0 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: Exposing internal configuration and state variables (such as 'locals_in_py') in the user-settable dictionary allows untrusted users to alter runtime behavior, bypass authorization checks, or escape sandboxes. Developers must explicitly restrict sensitive attributes from self.settable.
Privilege Escalation: Over-privileged GITHUB_TOKEN permissions in CI/CD workflows can allow compromised or untrusted workflow runs to write to or modify the repository. Applying the principle of least privilege to workflow permissions is necessary to mitigate this threat.