{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-107716","id":"CVE-2026-107716","title":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","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","descriptionLong":"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.","published":"2026-10-08T21:33:13.391Z","updated":"2026-10-28T02:31:10.083222911Z","reserved":"2026-10-08T17:21:52.975Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.3,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.3,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":7.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"high","products":["masci banks"],"affectedProducts":[{"vendor":"masci","product":"banks","defaultStatus":null,"versions":[{"version":"< 2.5.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"banks","purl":"pkg:pypi/banks","ranges":["<2.5.1"],"fixed":["2.5.1"],"advisory":"GHSA-556j-vv39-8rqv"}],"cwes":["CWE-22","CWE-59"],"aliases":["GHSA-556j-vv39-8rqv","PYSEC-2026-4201"],"references":[{"url":"https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/masci/banks/pull/79","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/masci/banks/releases/tag/v2.5.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107716.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107716","tags":["advisory"]},{"url":"https://github.com/masci/banks","tags":["package"]},{"url":"https://pypi.org/project/banks","tags":["package"]},{"url":"https://github.com/advisories/GHSA-556j-vv39-8rqv","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00134,"epssPercentile":0.02996,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-107716","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107716","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-107716","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-556j-vv39-8rqv","ok":true,"note":"GHSA-556j-vv39-8rqv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107716","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}