CVE-2026-107716 Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
Attackers with influence over the prompt directory can use symlinks to read or overwrite arbitrary files outside the registry root.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-107716?
CVE-2026-107716 is a high-severity path traversal vulnerability in masci banks, published on 8 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-107716?
3 open source packages ship an affected version, including banks.
| Package | Affected | Fixed in |
|---|---|---|
banks PyPI | All versions | 2.5.1 |
banks PyPI | All versions | 2.5.1 |
banks PyPI | All versions | 2.5.1 |
How do I fix CVE-2026-107716?
Upgrade banks to 2.5.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-107716 being exploited?
There is no known exploitation of CVE-2026-107716 in the wild and no public exploit code.
Sources
Also known as GHSA-556j-vv39-8rqv, PYSEC-2026-4201.