CVE-2025-52880 Komga Vulnerable to Arbitrary Code Execution via Crafted EPUB File
Attackers can execute arbitrary code by tricking admin users into viewing malicious EPUB files in Komga, leading to full server compromise.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-52880?
CVE-2025-52880 is a medium-severity cross-site scripting vulnerability in gotson komga, published on 24 Jun 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Komga is a media server for comics, mangas, BDs, magazines and eBooks. A Cross-Site Scripting (XSS) vulnerability has been discovered in versions 1.8.0 through 1.21.3 when serving EPUB resources, either directly from the API, or when reading using the epub reader. The vulnerability lets an attacker perform actions on the victim's behalf. When targeting an admin user, this can be combined with controlling a server-side command to achieve arbitrary code execution. For this vulnerability to be exploited, a malicious EPUB file has to be present in a Komga library, and subsequently accessed in the Epub reader by an admin user. Version 1.22.0 contains a patch for the issue.
Weakness: CWE-799
Which versions are affected by CVE-2025-52880?
How do I fix CVE-2025-52880?
No fix has been published for CVE-2025-52880 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-52880 being exploited?
There is no known exploitation of CVE-2025-52880 in the wild and no public exploit code.
Sources
Also known as GHSA-m7mm-6jxp-2m4x.