GHSA-x8wg-4xgc-vr54: Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root
- Identifiers
- CVE-2026-71492GHSA-x8wg-4xgc-vr54
- Published
- Record updated
- Affected
- banks < 2.4.5
- Fixed in
- 2.4.5
- released July 7, 2026, 57 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
`DirectoryPromptRegistry.set()` in Banks interpolates the `Prompt.name` value into a file path without canonicalization, so an application that derives the name from request data lets a caller write attacker-controlled bytes outside the configured registry directory. Relative traversal (`../`) and absolute paths (which `pathlib` lets override the registry root) both work, and the poisoned name persists in `index.json`. The advisory's verified output used `banks==2.4.2`.
Mitigation
Suggested fix in the source: validate `prompt.name` against the regex `[A-Za-z0-9._-]+` early in `src/banks/registries/directory.py` and verify that the resulting path stays under the registry root after canonicalization. The source's suggested-fix snippet is truncated, so no fixed release version is stated.
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