CVE-2021-4164: Cross-Site Request Forgery (CSRF) in calibre-web
Summary
CVE-2021-4164: calibre-web is vulnerable to Cross-Site Request Forgery (CSRF). Affects calibreweb versions < 0.6.15. Fixed in 0.6.15. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
calibre-web is a package available on PyPI that provides a web interface for the calibre ebook library manager. It allows users to access and manage their ebook collection through a web browser. The package is widely used and provides a convenient way for users to interact with their calibre library remotely. However, calibre-web is vulnerable to Cross-Site Request Forgery (CSRF), which can lead to unauthorized actions being performed on behalf of the user without their knowledge or consent.
Vulnerability Detail
The Cross-Site Request Forgery (CSRF) vulnerability in calibre-web allows an attacker to trick a user into performing unintended actions on the application. By crafting a malicious request and enticing the user to visit a specially crafted webpage or click on a malicious link, the attacker can exploit the trust between the user and the application. This can result in actions such as modifying user settings, deleting ebooks, or performing other unauthorized actions. The vulnerability has a CVSS score of 7.6, indicating a high severity level.
How To Fix
Latest published version: 0.6.27 as of 22 Oct 2026
pip install --upgrade "calibreweb==0.6.27"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.6.15
This is the first release that contains the fix.
pip install --upgrade "calibreweb==0.6.15"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update to the latest version of calibre-web to mitigate the risk of CSRF attacks.
Conclusion
The Cross-Site Request Forgery (CSRF) vulnerability in calibre-web poses a significant risk to the security of users' ebook libraries. It is crucial to update to the latest version of calibre-web (0.6.15 or later) to mitigate the vulnerability and prevent unauthorized actions. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for calibreweb →
FAQ
calibre-web is a web interface for the calibre ebook library manager, allowing users to access and manage their ebook collection remotely.
Cross-Site Request Forgery (CSRF) is an attack that tricks a user into performing unintended actions on a web application without their knowledge or consent.
An attacker can exploit CSRF to perform unauthorized actions on behalf of the user, such as modifying settings, deleting data, or performing other malicious actions.
To fix the CSRF vulnerability, it is recommended to update calibre-web to version 0.6.15 or later, which includes security patches to address the vulnerability.
No, there is no known workaround for this vulnerability. Updating to the latest version of calibre-web is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for calibreweb.