{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:bookstackapp:bookstack:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "21.08.5"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "dab170a6feb66986abf02b9de34c75aaf48a5373"
            },
            {
              "fixed": "7224fbcc89f00f2b71644e36bb1b1d96addd1d5a"
            }
          ],
          "repo": "https://github.com/bookstackapp/bookstack",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "bookstack is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
  "id": "CVE-2021-3874",
  "modified": "2026-07-08T05:37:32.366316303Z",
  "published": "2021-10-15T14:15:07.757Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a"
    },
    {
      "type": "FIX",
      "url": "https://huntr.dev/bounties/ac268a17-72b5-446f-a09a-9945ef58607a"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}