Security context

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

modelcontextprotocol/rust-sdk
main @ 839922d
11
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
crates/rmcp/src/transport/auth.rs: most-fixed (10 issues). Treat as high-risk during review.
5 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.

SSRF: OAuth metadata discovery allowed requests to arbitrary hosts, potentially exposing local development loops, cloud metadata services, or internal private networks. The fix instituted strict host validation, loopback blocking, and cross-origin redirect rejection.
Auth Bypass: Lack of resource identifier validation in fetched RFC 9439 Protected Resource Metadata permitted resource spoofing and unauthorized redirection to untrusted authorization servers.
Auth Bypass: The authorization callback was vulnerable to OAuth Mix-Up attacks because the application did not validate the issuer identification parameter (RFC 9207) during token exchange.