CVE-2026-107716
HIGH 7.3CVSS 4.0Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
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.
- Published
- 8 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-556j-vv39-8rqvPYSEC-2026-4201
- Sources
- NVDJSONOSV GHSA-556j-vv39-8rqvJSONOSV PYSEC-2026-4201JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | banks | < 2.5.1 | 2.5.1 |
References
- https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f · WEB
- https://github.com/masci/banks/pull/79 · WEB
- https://github.com/masci/banks/releases/tag/v2.5.1 · WEB
- https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv · WEB
- https://github.com/masci/banks · PACKAGE
- https://pypi.org/project/banks · PACKAGE
- https://github.com/advisories/GHSA-556j-vv39-8rqv · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-107716 · ADVISORY
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 8 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2026)