CVE-2024-39307 Cross-Site Scripting (XSS) vulnerability via crafted ebooks in Kavita

Low 3.5 Published Updated

Attackers can execute arbitrary scripts in the victim's browser by uploading malicious ebooks to the Kavita reading server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-39307?

CVE-2024-39307 is a low-severity cross-site scripting vulnerability in Kareadita Kavita, published on 28 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Kavita is a cross platform reading server. Opening an ebook with malicious scripts inside leads to code execution inside the browsing context. Kavita doesn't sanitize or sandbox the contents of epubs, allowing scripts inside ebooks to execute. This vulnerability was patched in version 0.8.1.

Weakness: CWE-79

Which versions are affected by CVE-2024-39307?

How do I fix CVE-2024-39307?

No fix has been published for CVE-2024-39307 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-2024-39307 being exploited?

There is no known exploitation of CVE-2024-39307 in the wild and no public exploit code.

Sources

Also known as GHSA-r4qc-3w52-2v84.

Is CVE-2024-39307 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free