Summary
CVE-2026-77296 is a critical path traversal vulnerability (combined with missing authentication) in MyMangaDB’s image upload endpoint. A remote, unauthenticated attacker can write files outside the intended directory, including the application’s SQLite database. This can lead to account takeover and full application compromise. The CVSS score is 9.3 (Critical).
Technical details
- Root cause: The
POST /api/v1/images/manga/saveendpoint has no authentication check (CWE-306). The client-suppliedfilenameparameter is passed toos.path.join()without sanitization (CWE-22). - Trigger conditions: The attacker uploads a file with a traversal filename such as
../MyMangaDB.db. The only content check is on the client-suppliedcontent_typeheader. It does not validate the file’s actual contents. In the default layout, the database and image directories share a parent directory, so the traversal path resolves to the live database. - Attack vector: Network. No credentials or user interaction are required.
- Impact: Unauthenticated arbitrary file write anywhere the application process has permissions. In the default deployment, the attacker can overwrite the live SQLite database and plant admin credentials. This gives account takeover and full application compromise.
Affected software
- MyMangaDB versions earlier than 2.7.2 (the GitHub advisory lists <= 2.7.1)
Severity
- CVSS 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. The CVE record scores this under CVSS v4.0, not v3.1.
Mitigation and recommended actions
- Immediate: Upgrade MyMangaDB to version 2.7.2 or later.
- If you cannot patch immediately: The vendor advisory documents no workarounds. Restrict network access to the MyMangaDB instance, for example behind a VPN or an authenticated reverse proxy. Block or limit access to
/api/v1/images/manga/save. Back up the SQLite database regularly. If the instance was exposed, check the database and filesystem for unexpected changes, such as unfamiliar admin accounts.

