Critical unauthenticated database import vulnerability in MyMangaDB (CVE-2026-77297)
MyMangaDB prior to 2.7.2 contains a critical unauthenticated vulnerability in the /api/v1/database/import endpoint. An attacker can upload a crafted ZIP archive that replaces the application database and image content, allowing full administrative access and potential data destruction. Fixed in version 2.7.2.
Overview
CVE-2026-77297 affects MyMangaDB, a self-hosted manga collection manager. The unauthenticated /api/v1/database/import handler (in backend/app/api/v1/endpoints/database.py) accepts a ZIP archive and moves an included database file to DATABASE_PATH while also replacing IMAGE_PATH content. An attacker can supply a database containing an attacker-controlled users table and administrative account, then authenticate as that account. Invalid replacement data can also destroy application data or availability.
Affected Versions
- Vulnerable: All versions prior to 2.7.2 - Fixed: 2.7.2 (released with commit 2ad34ea785c01d096b38a01420d56fc5a1078db4)
Impact
- Critical severity – unauthenticated remote attacker can gain full administrative control and/or cause denial of service via data loss. - The vulnerability is reachable without authentication, making it especially dangerous for internet-exposed Docker deployments.
References
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-77297 - Vendor advisory: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/security/advisories/GHSA-6fjr-pvm2-6xw2 - Fix commit: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/commit/2ad34ea785c01d096b38a01420d56fc5a1078db4 - Release: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/releases/tag/v2.7.2
What to do
1. Upgrade immediately to MyMangaDB version 2.7.2 or later. This is the only known fix for CVE-2026-77297. 2. If you cannot upgrade immediately, disable or block access to the /api/v1/database/import endpoint (e.g., via reverse proxy rules or firewall) until patched. 3. Review your deployment for signs of compromise – check for unexpected administrative accounts, modified database files, or missing image data. 4. Restrict network exposure of the application, especially if it is running in Docker and exposed to the internet. Use authentication and network segmentation where possible. 5. Verify the vendor advisory (GHSA-6fjr-pvm2-6xw2) for any additional mitigation steps or configuration changes. 6. Monitor for any further advisories or updates from the MyMangaDB project.