AploSec / Disclosures / CVE-2026-142275
Filestash before commit a634722 Session Token Theft via MCP OAuth redirect_uri
CVE-2026-142275 · published 2026-12-02
In plain words: this type of bug lets someone send users to a site the attacker controls (open redirect). No fixed release is listed yet.
Summary
CVE-2026-142275 affects Filestash (Server) < commit a634722: Session Token Theft via MCP OAuth redirect_uri (CWE-601). No fixed release is listed. CVSS 4.0 base score 8.6 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
Filestash before commit a634722 contains an open redirect vulnerability in the MCP OAuth flow that allows remote attackers to steal session tokens via an unvalidated redirect_uri. Attackers can lure logged-in users to a crafted /mcp/authorize link, capture the authorization code, and exchange it at /mcp/token for the victim's session token.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/filestash-before-commit-a634722-session-token-theft-via-mcp-oauth-redirect-uri
- Vulnerable codehttps://github.com/mickael-kerjean/filestash/blob/76238d7fc8a090433ee0ea5976b14a6e660f5419/server/plugin/plg_handler_mcp/handler_auth.go#L89-L156
- Vulnerable codehttps://github.com/mickael-kerjean/filestash/blob/76238d7fc8a090433ee0ea5976b14a6e660f5419/server/plugin/plg_handler_mcp/index.go#L35-L41
- Fix commithttps://github.com/mickael-kerjean/filestash/commit/a6347229a578c7659257b90e2d5f3980d2afdc44
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142275
- Severity
- High 8.6CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Filestash
- Ecosystem
- Server
- Affected
- < commit a634722
- Fixed
- None
- Weakness
- CWE-601
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder