Low
Cross-Site Scripting (XSS) vulnerability via crafted ebooks in Kavita
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-39307
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:21 UTC · Revision 1
Source evidence
Cross-Site Scripting (XSS) vulnerability via crafted ebooks in Kavita
core-osv · Original sourcePublished 28 Jun 2024, 20:44 UTC
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.
osv:CVE-2024-39307
Complete source record
{
"id": "8a66364555c2c4f410e747371e855296b3c0f19ef7606fc043968b9ac3d2166f",
"url": "https://osv.dev/vulnerability/CVE-2024-39307",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cross-Site Scripting (XSS) vulnerability via crafted ebooks in Kavita",
"summary": "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.",
"evidence": "osv:CVE-2024-39307",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2024-39307",
"aliases": [
"CVE-2024-39307",
"GHSA-r4qc-3w52-2v84"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/kareadita/kavita",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "38dd4a97db1ff55bce8490235bf6365c4075956c"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.8.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.8.1"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v0.8.0",
"v0.7.14",
"v0.7.13",
"v0.7.12",
"v0.7.11.2",
"v0.7.11.1",
"v0.7.11",
"v0.7.10.2",
"v0.7.10.1",
"v0.7.10",
"v0.7.9",
"v0.7.8",
"v0.7.7",
"v0.7.6",
"v0.7.5",
"v0.7.4",
"v0.7.3.1",
"v0.7.3",
"v0.7.1.4",
"v0.5.5",
"v0.5.4",
"v0.5.3",
"v0.5.2.5",
"v0.5.2.3",
"v0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.9",
"v0.4.8",
"v0.4.6",
"v0.4.5",
"v0.4.3",
"v0.4.2",
"v0.4.1.1",
"v0.3",
"v0.2",
"v0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39307.json"
}
}
],
"modified": "2026-10-28T02:30:38.816974126Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39307.json",
"https://github.com/Kareadita/Kavita/security/advisories/GHSA-r4qc-3w52-2v84",
"https://nvd.nist.gov/vuln/detail/CVE-2024-39307"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39307.json"
}
},
"related_cves": [
{
"value": "CVE-2024-39307",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506113,
"published_at": "2024-06-28T20:44:53.93+00:00"
}