MyMangaDB < 2.7.2 unauthenticated path traversal allows arbitrary file overwrite (CVE-2026-77296)

Critical unauthenticated path traversal in MyMangaDB's /api/v1/images/manga/save endpoint allows remote attackers to overwrite process-writable files, including the live SQLite database, leading to full application compromise and availability loss. Fixed in 2.7.2.

Details

CVE-2026-77296 affects MyMangaDB before 2.7.2. The unauthenticated /api/v1/images/manga/save handler in backend/app/api/v1/endpoints/image.py accepts a client-controlled filename and joins it to IMAGE_SAVE_PATH without confining the result. Path traversal sequences can escape the image directory and overwrite process-writable files, including DATABASE_PATH for the live SQLite database. The client-supplied image content type does not validate the uploaded bytes, so an attacker can replace the database to plant an administrative user and overwrite other writable files, causing full application compromise and availability loss.

This issue is fixed in version 2.7.2.

References: - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-77296 - Fix commit: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/commit/2ad34ea785c01d096b38a01420d56fc5a1078db4 - Release: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/releases/tag/v2.7.2 - Advisory: https://github.com/FabianRolfMatthiasNoll/MyMangaDB/security/advisories/GHSA-66h5-6vhv-5w76

What to do

1. Verify whether your MyMangaDB deployment is running a version before 2.7.2. If you use the project's Docker support, check the image tag and compare it to the fixed release. 2. Update to MyMangaDB 2.7.2 or later as soon as possible. If you are using Docker, redeploy with the fixed release tag v2.7.2. 3. If you cannot patch immediately, restrict network access to the API, especially /api/v1/images/manga/save, and run the service with least-privilege filesystem permissions so the process cannot write to the database or other sensitive files. 4. Review the vendor advisory and NVD entry before changing production, and verify the exact fixed version and upgrade steps for your deployment. 5. Check for signs of compromise: inspect the SQLite database for unexpected administrative users, review file modification times, and audit logs for requests to the vulnerable endpoint. 6. Monitor the vendor advisory/GHSA for any additional guidance or indicators of exploitation.

Sources