Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3987

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3987
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:54 UTC · Revision 1

Source evidence

CVE-2021-3987

core-osv · Original source

Published 15 Nov 2024, 11:15 UTC

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.

osv:CVE-2021-3987
Complete source record
{
  "id": "c57eef461d1940fbcd83d85927e6c513f15fa1b841cf46bf1181561412d2586f",
  "url": "https://osv.dev/vulnerability/CVE-2021-3987",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3987",
    "summary": "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.",
    "evidence": "osv:CVE-2021-3987",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-3987",
      "aliases": [
        "CVE-2021-3987",
        "GHSA-fj5v-w2jp-wqvj",
        "PYSEC-2026-1229"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/janeczku/calibre-web",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b564a97cdfc22c0e31e0ae18c6ed2b4320b40e50"
                },
                {
                  "fixed": "bcdc97641447965af486964537f3821f47b28874"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.6.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bcdc97641447965af486964537f3821f47b28874"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.6.14",
            "0.6.13",
            "0.6.12",
            "0.6.11",
            "0.6.10",
            "0.6.9",
            "0.6.8",
            "0.6.7",
            "0.6.6",
            "0.6.5",
            "0.6.3",
            "0.6.2",
            "0.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3987.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:54.798258557Z",
      "provider": "osv",
      "references": [
        "https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874",
        "https://huntr.com/bounties/29fcc091-87b6-43bc-ab4b-3c0bec3f71df"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3987",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386451,
  "published_at": "2024-11-15T11:15:06.61+00:00"
}