Cross-site Scripting (XSS) - DOM in janeczku/calibre-web
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.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | calibreweb | < 0.6.15 | 0.6.15 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3988
- https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5
- https://github.com/janeczku/calibre-web
- https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609
- https://pypi.org/project/calibreweb
- https://github.com/advisories/GHSA-r735-9gc6-2hvq
- 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.
- 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
- 2022: 9
- 2023: 2
- 2024: 4
- 2025: 3
- 2026: 0
-
Cross-site Scripting (XSS) - DOM in janeczku/calibre-web this entry
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.