Komga Vulnerable to Arbitrary Code Execution via Crafted EPUB File
Published Jun 24, 2025
4.2
MEDIUMCVSS 3.1
EPSS 0.32%
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.
Affected products
-
- Version >= 1.8.0, < 1.22.0StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (3)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-19058 Advisory
- https://github.com/gotson/komga/commit/5f9cc449b7846ed2066752c72c9ce7b20c3a85a7 x_refsource_MISC
- https://github.com/gotson/komga/security/advisories/GHSA-m7mm-6jxp-2m4x x_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-19058 | Advisory | |
| https://github.com/gotson/komga/commit/5f9cc449b7846ed2066752c72c9ce7b20c3a85a7 | x_refsource_MISC | |
| https://github.com/gotson/komga/security/advisories/GHSA-m7mm-6jxp-2m4x | x_refsource_CONFIRM |
Change history (0)
No recorded changes yet.