{"data":{"id":"32246480-7b69-4749-b89b-4c5d5bbeb3da","title":"GHSA-x8wg-4xgc-vr54: Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root","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`.","solution":"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.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-x8wg-4xgc-vr54","publishedAt":"2026-09-02T14:38:24.000Z","cveId":"CVE-2026-71492","cweIds":["CWE-22"],"cvssScore":null,"cvssSeverity":"medium","severity":"medium","attackType":["other"],"issueType":"vulnerability","affectedPackages":["banks@< 2.4.5 (fixed: 2.4.5)"],"affectedPackageNames":["banks"],"affectedPackageRefs":["pypi:banks"],"affectedVendors":[],"affectedVendorsRaw":["banks (DirectoryPromptRegistry)"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.00398,"epssPercentile":0.36179,"epssCheckedAt":"2026-12-03T18:27:03.302Z","epssHistory":null,"epss30dChange":null,"exploitUrls":["https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54"],"patchCommitUrls":["https://github.com/masci/banks/commit/a215f6d779966945c56e0af5abed1ae5916fd9d3","https://github.com/masci/banks/pull/77"],"ssvcExploitation":"poc","nvdStatus":"Deferred","referencesCheckedAt":"2026-12-03T19:23:28.273Z","kevDateAdded":null,"advisoryAliases":["GHSA-x8wg-4xgc-vr54"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-09-02T14:38:24.000Z","fixReleasedAt":"2026-07-07T08:14:10.974Z","daysToFix":-57,"fixCheckedAt":"2026-12-03T18:30:40.272Z","capecIds":["CAPEC-126"],"crossRefCount":0,"attackSophistication":"trivial","impactType":["integrity","confidentiality"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.85,"researchCategory":null,"atlasIds":null,"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":["banks@2.4.5"],"affectedPurls":["pkg:pypi/banks"],"owaspLlmIds":null,"doi":null,"arxivId":null,"hasPublicExploit":true,"timeline":[{"event":"fix_released","date":"2026-07-07","source":"package_registry"},{"event":"published","date":"2026-09-02","source":"record_source"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[{"ecosystem":"pypi","name":"banks","fixedVersion":"2.4.5","matchedVersion":"2.4.5","fixReleasedAt":"2026-07-07T08:14:10.974Z","daysToFix":-57,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-12-03T18:30:40.271Z"}]}}