Vulnerability · Published Oct 8, 2026 · Assigned by GitHub_M
CVE-2026-107716Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
High 7.3
In plain English
A high-severity path traversal in banks from masci. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | banks | 2.5.1 | GHSA-556j-vv39-8rqv |
| PyPI | banks | 2.5.1 | PYSEC-2026-4201 |
Affected products (as reported)
Weakness: CWE-22, CWE-59 · 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
References
- https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv x_refsource_CONFIRM
- https://github.com/masci/banks/pull/79 x_refsource_MISC
- https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f x_refsource_MISC
- https://github.com/masci/banks/releases/tag/v2.5.1 x_refsource_MISC