{"cve":"CVE-2026-107716","nvd":{"published":"2026-10-08T22:17:27.323","modified":"2026-10-09T16:17:23.310","status":"Deferred","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.","cvss_v4":{"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","score":7.3},"cvss_v3":null,"cwes":["CWE-22","CWE-59"],"references":["https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f","https://github.com/masci/banks/pull/79","https://github.com/masci/banks/releases/tag/v2.5.1","https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:58:01.639778232+00:00"},"epss":{"cve":"CVE-2026-107716","score":0.00134,"percentile":0.029,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-556j-vv39-8rqv","url":"https://osv.dev/vulnerability/GHSA-556j-vv39-8rqv","summary":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","modified":"2026-10-15T14:55:55.950976679Z","packages":[{"ecosystem":"PyPI","name":"banks","purl":"pkg:pypi/banks","ranges":["<2.5.1"],"fixed":["2.5.1"]}]},{"id":"PYSEC-2026-4201","url":"https://osv.dev/vulnerability/PYSEC-2026-4201","summary":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","modified":"2026-10-15T14:45:06.048658626Z","packages":[{"ecosystem":"PyPI","name":"banks","purl":"pkg:pypi/banks","ranges":["<2.5.1"],"fixed":["2.5.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}