{"id":"CVE-2026-107716","state":"PUBLISHED","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 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.","publishedAt":"2026-10-08T21:33:13.391Z","updatedAt":"2026-10-09T15:13:19.781Z","severity":{"score":7.3,"label":"High","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["masci banks"],"affected":[{"vendor":"masci","product":"banks","versions":[{"version":"< 2.5.1","status":"affected"}]}],"references":["https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv","https://github.com/masci/banks/pull/79","https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f","https://github.com/masci/banks/releases/tag/v2.5.1"],"weaknesses":["CWE-22","CWE-59"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/107xxx/CVE-2026-107716.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-107716","state":"PUBLISHED","datePublished":"2026-10-08T21:33:13.391Z","dateUpdated":"2026-10-09T15:13:19.781Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-08T17:21:52.975Z"},"containers":{"cna":{"title":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"masci","product":"banks","versions":[{"version":"< 2.5.1","status":"affected"}]}],"references":[{"url":"https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv","name":"https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/masci/banks/pull/79","name":"https://github.com/masci/banks/pull/79","tags":["x_refsource_MISC"]},{"url":"https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f","name":"https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f","tags":["x_refsource_MISC"]},{"url":"https://github.com/masci/banks/releases/tag/v2.5.1","name":"https://github.com/masci/banks/releases/tag/v2.5.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-08T21:33:13.391Z"},"source":{"advisory":"GHSA-556j-vv39-8rqv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-09T14:54:57.852402Z","id":"CVE-2026-107716","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-09T15:13:19.781Z"}}]}}}