MyTube: CSRF Protection Bypass via Arbitrary x-api-key Header Value
- State
- Published
- Severity
- 6.8 Medium
- Published
- Nov 3, 2026
- Updated
- Nov 7, 2026
- Reserved
- Jul 16, 2026
Description
MyTube is a self-hosted downloader and player for several video websites. Prior to 1.10.6, shouldSkipCsrfProtection() in backend/src/middleware/csrfConfig.ts delegates to isApiKeyRequest(), which grants a CSRF exemption based only on the presence of an x-api-key header or an Authorization: ApiKey value rather than successful API-key validation. With a permissive CORS_ALLOWED_ORIGINS configuration, an unauthenticated attacker can lure an authenticated administrator to attacker-controlled content that sends a cross-origin state-changing request with an arbitrary API-key value. The victim's session cookie authenticates the request while CSRF token validation is skipped, allowing destructive or other administrator API operations such as deleting media, triggering downloads, or changing subscriptions. This issue is fixed in version 1.10.6.
| Product | Versions |
|---|---|
| MyTube franklioxygen | < 1.10.6 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 6.8 Medium | GitHub_M |
Weaknesses
- CWE-352 Cross-Site Request Forgery (CSRF)
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.