Summary
CVE-2026-77297 is a missing-authentication vulnerability (CWE-306) in MyMangaDB. The /api/v1/database/import endpoint can be called without credentials, which lets a remote attacker replace the application’s live database and image store. The CVSS score is 9.3 (Critical).
Technical details
- Root cause: The
/api/v1/database/importhandler does not require authentication, although the application enforces access controls on other routes (CWE-306). - Trigger conditions: The attacker needs network access to the MyMangaDB server. No credentials or user interaction are required.
- Attack vector: The attacker uploads a crafted ZIP archive containing a database file. The handler moves that file to
DATABASE_PATHand replaces the content atIMAGE_PATH. - Impact:
- The attacker can inject administrative credentials into the users table, which allows account hijacking and persistent access.
- The attacker can replace or corrupt all application data and the image library.
- Uploading an invalid database can cause denial of service.
Affected software
- MyMangaDB versions prior to 2.7.2 (the advisory lists versions up to and including 2.7.1).
Severity
- CVSS v4.0 base score: 9.3 (Critical)
- Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Mitigation and recommended actions
- Immediate: Upgrade to MyMangaDB 2.7.2 or later. The fix adds superuser authentication dependencies to the
/exportand/importroutes. - If no patch is possible: The vendor documents no workaround. As a general precaution, not a vendor-documented measure, restrict network access to the MyMangaDB instance so untrusted users cannot reach it.
- Review existing user accounts and the library data for unexpected changes, especially on instances that were exposed to untrusted networks.

