GHSA-556j-vv39-8rqv: Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
- Identifiers
- CVE-2026-107716GHSA-556j-vv39-8rqv
- Published
- Record updated
- Affected
- banks <= 2.5.0
- Fixed in
- 2.5.1
- released September 10, 2026, 28 days before disclosure
Summary
The banks.registries.DirectoryPromptRegistry class does not refuse symbolic links for prompt file paths or for index.json. When a prompt directory holds untrusted files, such as unpacked archives or shared folders, a symlink pointing outside the registry root lets an attacker disclose arbitrary files through _scan() and get(), or overwrite them through set() and _save(). The impact is classified as CWE-59 and CWE-200.
Mitigation
The source describes these remediation steps: in _validate_index_path(), verify that _index_path is not a symlink and resolves within _path; in _scan(), reject path.is_symlink() and check that path.resolve().is_relative_to(root); in set(), reject existing symbolic links before writing. A tested fix and regression tests are available at https://github.com/jankesec/banks/tree/fix-directory-registry-symlinks-and-nesting.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- banksPyPILLM dependency since 2023-06-04, 2 tracked dependents
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online