Vulnerability  ·  2026-08-21

Banks LLM prompt-template library — path traversal in DirectoryPromptRegistry via unsanitized prompt name/version

VulnerabilityMedium impactGlobalCVE-2026-71492
Published 2026-08-20 (CVSS 6.0, Medium), this vulnerability lets attacker-controlled prompt name/version fields traverse outside the intended prompt-storage directory when using Banks' DirectoryPromptRegistry.
While a niche prompt-templating library, this shows the broader pattern of AI/LLM-tooling libraries lacking basic path-canonicalization hygiene when handling user- or agent-supplied identifiers, which can lead to arbitrary file write/overwrite in prompt-management pipelines.
DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a filesystem Path without canonicalization or containment validation, allowing path traversal when storing prompt templates.
Banks (LLM prompt template language) prior to 2.4.5
Upgrade to Banks ≥2.4.5; validate/canonicalize prompt name and version strings before path construction.
GitHub commit - masci/banksNVD - CVE-2026-71492
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →