Security context

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

microsoft/debugpy
main @ cd699b4
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
ptvsd.adapter: most-fixed (1 issue). Treat as high-risk during review.
3 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: Insecure debugger port exposure allowed unauthorized attachment. Attackers could connect to unauthenticated ports and execute arbitrary code, which was mitigated by generating and validating unique access tokens during channel requests.
Auth Bypass: Command execution channels in the JSON-based network handler of the vendored debugger did not verify client identity, necessitating the enforcement of a token validation step within the command dispatcher.
Auth Bypass: Standard text/binary network commands processed by pydevd did not validate access tokens, allowing unauthorized remote command queueing via the connection writer before an authentication guard was implemented.