Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Janeczku | Calibre-Web | < 0.6.15 |
Related Weaknesses (CWE)
References
- https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3Patch
- https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609Exploit
FAQ
What is CVE-2021-3988?
CVE-2021-3988 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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...
How severe is CVE-2021-3988?
CVE-2021-3988 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-3988?
Check the references section above for vendor advisories and patch information. Affected products include: Janeczku Calibre-Web.