Medium

Cross-site Scripting (XSS) - DOM in janeczku/calibre-web

  • Disclosed: 15.11.2024
  • Updated: 11.10.2026 13:18

A Cross-site Scripting (XSS) vulnerability exists in janeczku/calibre-web, specifically in the file edit_books.js. The vulnerability occurs when editing book properties, such as uploading a cover or a format. The affected code directly inserts user input into the DOM without proper sanitization, allowing attackers to execute arbitrary JavaScript code. This can lead to various attacks, including stealing cookies. The issue is present in the code handling the #btn-upload-cover change event.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) calibreweb < 0.6.15 0.6.15

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Python (PyPI)
Package
calibreweb
Disclosed
15.11.2024
Updated
11.10.2026 13:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1236 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-r735-9gc6-2hvq - CC BY 4.0

Vulnerability history: calibreweb

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (18) in the archive
Total entries
18
First → latest
01.2022 12.2025
Without a fix
4
Exploited in attacks
0

Severity breakdown

  • Critical 4
  • High 4
  • Medium 9
  • Low 1

Disclosures per year

  1. 2022: 9
  2. 2023: 2
  3. 2024: 4
  4. 2025: 3
  5. 2026: 0
Severity:
  1. High CVE-2025-6998 <= 0.6.24 no fix
  2. Cross-site Scripting (XSS) - DOM in janeczku/calibre-web this entry
    Medium · 6.1 CVE-2021-3988 < 0.6.15 0.6.15
  3. High · 7.3 CVE-2023-2106 < 0.6.20 0.6.20
  4. Critical · 9.8 CVE-2022-30765 < 0.6.18 0.6.18
  5. Critical · 9.8 CVE-2022-0766 < 0.6.17 0.6.17
  6. Critical · 9.9 CVE-2022-0767 < 0.6.17 0.6.17
  7. High · 6.5 CVE-2022-0273 < 0.6.16 0.6.16
  8. High · 7.6 CVE-2021-4164 < 0.6.15 0.6.15
  9. Critical · 9.8 CVE-2021-4171 < 0.6.15 0.6.15

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.