CVE-2026-77296
Received Received - Intake

Path Traversal in MyMangaDB Leading to RCE

Vulnerability report for CVE-2026-77296, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-18

Last updated on: 2026-11-18

Assigner: GitHub, Inc.

Description

MyMangaDB is a self-hosted manga collection manager with automatic metadata, MyAnimeList import, Docker support, and collection statistics. Prior to 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. Traversal sequences can escape the image directory and overwrite process-writable files, including DATABASE_PATH for the live SQLite database, while the client-supplied image content type does not validate the uploaded bytes. An attacker can replace the database to plant an administrative user and can overwrite other writable files, causing full application compromise and availability loss. This issue is fixed in version 2.7.2.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-18
Last Modified
2026-11-18
Generated
2026-11-19
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
fabianrolfmatthiasnoll mymangadb 2.7.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a critical unauthenticated path traversal flaw in MyMangaDB's cover-image upload feature. The /api/v1/images/manga/save endpoint accepts a user-controlled filename without proper sanitization, allowing attackers to use directory traversal sequences like ../ to escape the intended image directory. This can overwrite critical files including the SQLite database (MyMangaDB.db) located in the same parent directory.

Detection Guidance

Check MyMangaDB logs for suspicious requests to /api/v1/images/manga/save with filenames containing '../' sequences. Inspect file timestamps and sizes in the image directory and compare with known good backups. Look for unexpected administrative users in the database file.

Impact Analysis

An attacker can exploit this to overwrite the application's SQLite database with a malicious version containing an administrative user account. This grants full administrative access to the application without authentication. Additionally, other writable files in the application's directory scope can be overwritten, leading to complete system compromise and potential availability loss.

Compliance Impact

This vulnerability could lead to unauthorized access and modification of sensitive data, including personal or health information, which may violate GDPR and HIPAA compliance requirements for data integrity and confidentiality.

Mitigation Strategies

Upgrade MyMangaDB to version 2.7.2 or later. If immediate upgrade is not possible, restrict network access to the /api/v1/images/manga/save endpoint using firewalls or reverse proxies. Review database files for unauthorized modifications and restore from a clean backup if compromised.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-77296. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...