CVE-2026-107716 Details
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.
A vulnerability exists in the Banks LLM prompt management system, specifically within the DirectoryPromptRegistry component, in versions prior to 2.5.1. The issue arises because the registry does not properly handle symbolic links in prompt directories. This oversight can lead to unauthorized access to files outside the registry's root directory or allow overwriting of files through exploited symlinks. The vulnerability is particularly concerning in environments where users can introduce untrusted files into the prompt directory.
Users can update to Banks version 2.5.1, which addresses the vulnerability by implementing proper checks for symbolic links in the prompt registry.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 8, 2026CISA-ADP
Assessed Oct 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f | [email protected] | Source CodeVendor |
| https://github.com/masci/banks/pull/79 | [email protected] | Source CodeVendor |
| https://github.com/masci/banks/releases/tag/v2.5.1 | [email protected] | Release NotesVendor |
| https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Banks | <= 2.5.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2026 | New CVE Received | [email protected] |
Volerion