{
  "id": "CVE-2026-107716",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-107716",
  "published_at": "2026-10-08T21:33:13.391Z",
  "title": "Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry",
  "vendor": "masci",
  "product": "banks",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Banks generates meaningful LLM prompts using a simple template language. Prior to 2.5.1, Banks DirectoryPromptRegistry does not reject symbolic links for index.json or discovered and existing .jinja prompt files. In an application where untrusted users can influence a prompt directory, DirectoryPromptRegistry._scan() and DirectoryPromptRegistry.get() can follow a link outside the registry root and disclose a file, while DirectoryPromptRegistry.set(), DirectoryPromptRegistry._save(), and DirectoryPromptRegistry._load() can read or overwrite an external link target. The issue requires attacker influence over the registry directory or its extracted contents. This issue is fixed in version 2.5.1.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "masci",
        "product": "banks",
        "ranges": [
          "\u003c 2.5.1"
        ],
        "fixed_in": [
          "2.5.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade banks to 2.5.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/masci/banks/pull/79"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/masci/banks/releases/tag/v2.5.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
