{"cve":"CVE-2026-71492","nvd":{"published":"2026-08-20T17:19:40.930","modified":"2026-10-18T20:10:00.110","status":"Deferred","description":"Banks generates meaningful LLM prompts using a simple template language. Prior to version 2.4.5, DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a Path without canonicalization or containment validation. Relative traversal such as ../victim/foo and an absolute Prompt.name can escape or discard the configured registry root, while overwrite=True permits replacement of existing target files. The poisoned name is persisted in index.json and reconstructed by _load(), allowing the out-of-root path to survive later registry loads. An application that forwards request data into these fields can therefore write Prompt.raw bytes to attacker-chosen paths writable by the application process. This issue is fixed in version 2.4.5.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":6.0},"cvss_v3":null,"cwes":["CWE-22"],"references":["https://github.com/masci/banks/commit/a215f6d779966945c56e0af5abed1ae5916fd9d3","https://github.com/masci/banks/pull/77","https://github.com/masci/banks/releases/tag/v2.4.5","https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54","https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-71492","score":0.00474,"percentile":0.40698,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-x8wg-4xgc-vr54","url":"https://osv.dev/vulnerability/GHSA-x8wg-4xgc-vr54","summary":"Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root","modified":"2026-09-10T12:25:29.001076918Z","packages":[{"ecosystem":"PyPI","name":"banks","purl":"pkg:pypi/banks","ranges":["<2.4.5"],"fixed":["2.4.5"]}]},{"id":"PYSEC-2026-3810","url":"https://osv.dev/vulnerability/PYSEC-2026-3810","summary":"Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root","modified":"2026-09-10T12:15:05.544776517Z","packages":[{"ecosystem":"PyPI","name":"banks","purl":"pkg:pypi/banks","ranges":["<2.4.5"],"fixed":["2.4.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}