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

- Severity: Medium 5.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-15T10:52:29.478Z
- Modified: 2026-07-07T17:57:15.471Z
- Also known as: GHSA-fj5v-w2jp-wqvj, PYSEC-2026-1229
- Weaknesses: CWE-284, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- janeczku janeczku/calibre-web: from unspecified up to latest
- calibre-web_project calibre-web: before *
- calibreweb (PyPI): before 0.6.15
- janeczku calibre-web: before 0.6.15

## Every score

- @huntr_ai: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/29fcc091-87b6-43bc-ab4b-3c0bec3f71df> (exploit, web)
- <https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3987> (advisory)
- <https://github.com/janeczku/calibre-web> (package)
- <https://pypi.org/project/calibreweb> (package)
- <https://github.com/advisories/GHSA-fj5v-w2jp-wqvj> (advisory)

## Sources

- CVE List: [CVE-2021-3987](https://www.cve.org/CVERecord?id=CVE-2021-3987), CVE Terms of Use, modified 2024-11-15
- GitHub Advisory Database: [GHSA-fj5v-w2jp-wqvj](https://github.com/advisories/GHSA-fj5v-w2jp-wqvj), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2021-3987](https://nvd.nist.gov/vuln/detail/CVE-2021-3987), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1229](https://osv.dev/vulnerability/PYSEC-2026-1229), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2021-3987 · Whole record: https://cve.day/CVE-2021-3987.json · Rebuilt by cve.day 2026-11-25T22:58:08.966Z
