CVE-2021-3988
published medium CVSS 3.0 · 5.7Cross-site Scripting (XSS) in janeczku/calibre-web
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| janeczku | janeczku/calibre-web | unspecified through latest (affected · custom) | @huntr_ai · cna |
| janeczku | calibre-web | 0 to < 0.6.15 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2@huntr_ai · cna
Cross-site Scripting (XSS) in janeczku/calibre-web
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d023a70a8ad00d7a0d78ca7c6499a07d2a202810dff5486395b14c91c7dc2c23
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record