CVE-2021-3988
MEDIUM 6.1CVSS 3.1Cross-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.
- Published
- 15 Nov 2024
- Last modified
- 7 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-r735-9gc6-2hvqPYSEC-2026-1236
- Sources
- NVDJSONOSV GHSA-r735-9gc6-2hvqJSONOSV PYSEC-2026-1236JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.7 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | janeczku | calibre-webcpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:* |
< 0.6.15 | 0.6.15 |
| OSV | PyPI | calibreweb | < 0.6.15 | 0.6.15 |
References
- https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5 · Patch, WEB
- https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609 · Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3988 · ADVISORY
- https://github.com/janeczku/calibre-web · PACKAGE
- https://pypi.org/project/calibreweb · PACKAGE
- https://github.com/advisories/GHSA-r735-9gc6-2hvq · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 15 Nov 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Nov 2024)