Description
MyTube is a self-hosted downloader and player for several video websites. A vulnerability present in version 1.7.65 and poetntially earlier versions allows unauthenticated users to bypass the mandatory authentication check in the roleBasedAuthMiddleware. By simply not providing an authentication cookie (making req.user undefined), a request is incorrectly passed through to downstream handlers. All users running MyTube with loginEnabled: true are impacted. This flaw allows an attacker to access and modify application settings via /api/settings, change administrative and visitor passwords, and access other protected routes that rely on this specific middleware. The problem is patched in v1.7.66. MyTube maintainers recommend all users upgrade to at least version v1.7.64 immediately to secure their instances. The fix ensures that the middleware explicitly blocks requests if a user is not authenticated, rather than defaulting to next(). Those who cannot upgrade immediately can mitigate risk by restricting network access by usi a firewall or reverse proxy (like Nginx) to restrict access to the /api/ endpoints to trusted IP addresses only or, if they are comfortable editing the source code, manually patch by locating roleBasedAuthMiddleware and ensuring that the logic defaults to an error (401 Unauthorized) when req.user is undefined, instead of calling next().
Published: 2026-01-19
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Authorization Bypass
Action: Immediate Patch
AI Analysis

Impact

The flaw resides in the roleBasedAuthMiddleware of MyTube, where unauthenticated requests are allowed to proceed to downstream handlers. An attacker who omits the authentication cookie can cause the middleware to treat req.user as undefined and simply call next(), thereby bypassing the mandatory authentication check. As a result, the attacker can access and modify application settings through /api/settings, change administrative and visitor passwords, and consume any protected routes that depend on this middleware. This is a classic authorization bypass based on missing access control checks (CWE-863).

Affected Systems

The vulnerability affects the FrankLioxygen MyTube application, specifically versions 1.7.65 and earlier. Any instance that runs with loginEnabled set to true is impacted regardless of the exact version number, until the middleware is patched. The defect was fixed in the 1.7.66 release.

Risk and Exploitability

The CVSS base score of 9.8 marks this as Critical, while the EPSS score of less than 1% indicates that exploitation attempts are expected to be rare but possible. The vulnerability is not currently listed in the CISA KEV catalog, yet the lack of authentication enforcement makes remote exploitation straightforward: an unauthenticated user can issue requests to any protected API endpoint via an open network connection. The attacker has full control over settings and credentials once the bypass is achieved. High severity combined with low but non-zero exploit probability means that administrators should act promptly.

Generated by OpenCVE AI on April 18, 2026 at 04:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MyTube to v1.7.66 or later so that the middleware blocks unauthenticated requests with a 401 error.
  • If an upgrade is not immediately possible, restrict network access to the /api/ endpoints using a firewall or reverse proxy, allowing only trusted IP addresses to reach them.
  • As a temporary patch, edit the roleBasedAuthMiddleware code to return a 401 Unauthorized response whenever req.user is undefined instead of calling next().

Generated by OpenCVE AI on April 18, 2026 at 04:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Feb 2026 13:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:franklioxygen:mytube:*:*:*:*:*:*:*:*

Tue, 20 Jan 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 20 Jan 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Franklioxygen
Franklioxygen mytube
Vendors & Products Franklioxygen
Franklioxygen mytube

Mon, 19 Jan 2026 20:30:00 +0000

Type Values Removed Values Added
Description MyTube is a self-hosted downloader and player for several video websites. A vulnerability present in version 1.7.65 and poetntially earlier versions allows unauthenticated users to bypass the mandatory authentication check in the roleBasedAuthMiddleware. By simply not providing an authentication cookie (making req.user undefined), a request is incorrectly passed through to downstream handlers. All users running MyTube with loginEnabled: true are impacted. This flaw allows an attacker to access and modify application settings via /api/settings, change administrative and visitor passwords, and access other protected routes that rely on this specific middleware. The problem is patched in v1.7.66. MyTube maintainers recommend all users upgrade to at least version v1.7.64 immediately to secure their instances. The fix ensures that the middleware explicitly blocks requests if a user is not authenticated, rather than defaulting to next(). Those who cannot upgrade immediately can mitigate risk by restricting network access by usi a firewall or reverse proxy (like Nginx) to restrict access to the /api/ endpoints to trusted IP addresses only or, if they are comfortable editing the source code, manually patch by locating roleBasedAuthMiddleware and ensuring that the logic defaults to an error (401 Unauthorized) when req.user is undefined, instead of calling next().
Title MyTube has an Authorization Bypass vulnerability
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Franklioxygen Mytube
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-20T17:24:06.897Z

Reserved: 2026-01-16T15:46:40.842Z

Link: CVE-2026-23837

cve-icon Vulnrichment

Updated: 2026-01-20T17:24:03.210Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-19T21:15:50.903

Modified: 2026-02-02T13:24:34.437

Link: CVE-2026-23837

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T05:00:06Z

Weaknesses