CVE-2021-4171: Business Logic Errors in calibre-web

calibreweb Updated 02 Oct 2025

Summary

21/01/2022
Yes i
Critical
9.8

CVE-2021-4171: calibre-web is vulnerable to Business Logic Errors. Affects calibreweb versions < 0.6.15. Fixed in 0.6.15. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

calibre-web is an open-source web application that provides a user interface for managing and accessing e-book libraries. It allows users to organize, browse, and download e-books from their calibre libraries. The application is written in Python and is available on the PyPI package repository. Unfortunately, calibre-web is vulnerable to Business Logic Errors, which can lead to critical security issues.

Vulnerability Detail

The Business Logic Errors in calibre-web can be exploited by attackers to bypass certain security measures or perform unauthorized actions. These errors occur in the 'check_shelf_is_unique' and 'create_edit_shelf' functions of the 'calibreweb.cps.shelf' module. By manipulating the logic of these functions, an attacker can potentially create duplicate shelves or modify existing ones without proper authorization. This can result in data corruption, unauthorized access to e-books, or other security breaches.

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

As a temporary workaround, users can disable the affected functionality related to shelf management until the application is updated. This can be achieved by modifying the application's configuration or access control settings to restrict access to the 'check_shelf_is_unique' and 'create_edit_shelf' functions. However, this workaround may limit the functionality of the application and is not a permanent solution.

Conclusion

In conclusion, calibre-web is vulnerable to Business Logic Errors that can be exploited by attackers to bypass security measures and perform unauthorized actions. It is crucial to update the application to the latest version (0.6.15 or later) to mitigate this vulnerability. If you require further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for calibreweb →

Share this vulnerability

FAQ

calibre-web is an open-source web application that provides a user interface for managing and accessing e-book libraries.

The Business Logic Errors in calibre-web can lead to data corruption, unauthorized access to e-books, or other security breaches.

To fix this vulnerability, update calibre-web to version 0.6.15 or later.

As a temporary workaround, users can disable the affected functionality related to shelf management until the application is updated.

For more information about this vulnerability, you can refer to the GitHub Advisory Database entry: [link to the vulnerability details]

Related vulnerabilities

Recent vulnerabilities recorded for calibreweb.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback