What happened
Published 2026-12-02, CVSS 8.1 (CWE-601 open redirect). The MCP OAuth flow trusts an unvalidated redirect_uri so an attacker can steal the victim's session token after a redirected authorization. Fixed in commit a634722.
Why it matters
MCP OAuth is how agents authenticate to services. An open redirect in that flow hands an attacker a valid session token for the MCP endpoint, letting them act as the agent/owner against the MCP tool surface.
Attack vector
An unvalidated redirect_uri in the MCP OAuth flow lets an attacker capture the authorization code from a crafted /mcp/authorize link and exchange it at /mcp/token for the victim's session token (CWE-601).
Affected systems
Filestash before commit a634722 (MCP OAuth handler)
Mitigation
Upgrade Filestash to commit a634722 or later to validate redirect_uri in the MCP handler.