CVE-2021-3988Janeczku Calibre-web
Medium 6.1 No auth needed
Follow: this CVE · Janeczku · Janeczku Calibre-web We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 24
- Auth required
- No
- Published
- Nov 15, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Calibre-web.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | calibreweb |
< 0.6.15 |
0.6.15 |
pip install "calibreweb>=0.6.15" |
| PyPI | calibreweb |
< 0.6.15 |
0.6.15 |
pip install "calibreweb>=0.6.15" |
Per OSV / GitHub Advisories (GHSA-r735-9gc6-2hvq, PYSEC-2026-1236). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| janeczku | calibre-web | < 0.6.15 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit