CVE-2021-3988: Cross-site Scripting (XSS) in janeczku/calibre-web
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
Remediation
Event History
Frequently Asked Questions
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.
How do I fix CVE-2021-3988?
To fix CVE-2021-3988, upgrade to version 0.6.15 or later of calibreweb.
Which versions of calibre-web are affected by CVE-2021-3988?
CVE-2021-3988 affects calibre-web versions prior to 0.6.15.
Where does the CVE-2021-3988 vulnerability occur in calibre-web?
The vulnerability occurs in the file edit_books.js when editing book properties.
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.