{"id":"CVE-2026-107716","summary":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","details":"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.","aliases":["GHSA-556j-vv39-8rqv"],"modified":"2026-10-09T10:46:10.889226424Z","published":"2026-10-08T21:33:13.391Z","database_specific":{"cwe_ids":["CWE-22","CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107716.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107716.json"},{"type":"FIX","url":"https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f"},{"type":"FIX","url":"https://github.com/masci/banks/pull/79"},{"type":"WEB","url":"https://github.com/masci/banks/releases/tag/v2.5.1"},{"type":"ADVISORY","url":"https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107716"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/masci/banks","events":[{"introduced":"0"},{"fixed":"e62cf769e56c3b2096efd460e46c2aca9f6aff76"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.5.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.5.0","v2.4.5","v2.4.4","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.0","v2.2.0","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.0","v1.8.0","v1.7.1","v1.7.0","v1.6.1","v1.6.0","v1.5.0","v1.4.0","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.0","v0.6.0","v0.5.0","v0.4.1","v0.4.0","v0.3.1","v0.3.0","v0.2.0","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107716.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}