# CVE-2026-107716: Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-10-08T21:33:13.391Z
- Modified: 2026-10-15T14:55:55.950Z
- Also known as: GHSA-556j-vv39-8rqv, PYSEC-2026-4201
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- masci banks: < 2.5.1
- banks (PyPI): before 2.5.1

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: rating Medium

## References

- <https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv> (web)
- <https://github.com/masci/banks/pull/79> (web)
- <https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f> (web)
- <https://github.com/masci/banks/releases/tag/v2.5.1> (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)

## Sources

- CVE List: [CVE-2026-107716](https://www.cve.org/CVERecord?id=CVE-2026-107716), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-556j-vv39-8rqv](https://github.com/advisories/GHSA-556j-vv39-8rqv), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107716](https://nvd.nist.gov/vuln/detail/CVE-2026-107716), Public domain, modified 2026-10-09
- PyPA Advisory Database: [PYSEC-2026-4201](https://osv.dev/vulnerability/PYSEC-2026-4201), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-107716 · Whole record: https://cve.day/CVE-2026-107716.json · Rebuilt by cve.day 2026-11-25T22:59:43.239Z
