Security context

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

modelcontextprotocol/ext-apps
main @ fa12744
13
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
examples/basic-host/src/sandbox.ts: most-fixed (3 issues). Treat as high-risk during review.
10 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: The OAuth/OIDC implementation lacked crucial verification mechanisms, including mandatory PKCE, redirect URI binding, and single-use authorization code checks, exposing the token exchange endpoint to replay and interception attacks.
Cross-Origin Message Spoofing: Using wildcard target origins in window.postMessage and failing to validate incoming event origins allowed cross-origin message spoofing and information disclosure between the host and sandboxed environments.
Path Traversal: Insufficent validation of image URLs in the resolveImageAnnotation helper allowed arbitrary local file reads when resolveImageAnnotation reads files from disk.