What’s Vulnerable › Vulnerabilities
CVE-2026-107716: Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
- Severity: high (CVSS 7.3 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-08 · updated 2026-10-09
- Weakness: CWE-22
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.
Affected products
- masci banks: before 2.5.1
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
Get alerted when CVE-2026-107716 or the next vulnerability affects your stack