Vulnerability · Published Nov 15, 2024 · Assigned by @huntr_ai
CVE-2021-3988Cross-site Scripting (XSS) in janeczku/calibre-web
Medium 5.7
In plain English
A medium-severity cross-site scripting in janeczku/calibre-web from janeczku. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | calibreweb | 0.6.15 | GHSA-r735-9gc6-2hvq |
| PyPI | calibreweb | 0.6.15 | PYSEC-2026-1236 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| janeczku | janeczku/calibre-web | unspecified – through latest |
Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N