CVE-2021-3988: Cross-site Scripting (XSS) in janeczku/calibre-web

Published Nov 15, 2024
·
Updated

A Cross-site Scripting (XSS) vulnerability exists in janeczku/calibre-web, specifically in the file editbooks.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

2 affected componentsFixes available
pip/calibreweb<0.6.15
0.6.15
janeczku Calibre-Web<0.6.15

Event History

Nov 15, 2024
CVE Published
via MITRE·10:52 AM
Data Sourced
via MITRE·10:52 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·12:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2021-3988?

CVE-2021-3988 is classified as a Cross-site Scripting (XSS) vulnerability, which can lead to severe exploitation risks.

2

How do I fix CVE-2021-3988?

To fix CVE-2021-3988, upgrade to version 0.6.15 or later of calibreweb.

3

Which versions of calibre-web are affected by CVE-2021-3988?

CVE-2021-3988 affects calibre-web versions prior to 0.6.15.

4

Where does the CVE-2021-3988 vulnerability occur in calibre-web?

The vulnerability occurs in the file edit_books.js when editing book properties.

5

What are the potential impacts of CVE-2021-3988?

The potential impacts of CVE-2021-3988 include unauthorized script execution in the context of the user's browser.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203