SecurityContext

CVE-2026-71492: Banks - Path Traversal

  • Cve: CVE-2026-71492
  • Name: Banks - Path Traversal
  • 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.
  • Impact: Attackers can write arbitrary files to paths outside the intended directory, potentially leading to data tampering or code execution.
  • Remediation: Update to version 2.4.5 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6
  • Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00474
  • Epss percentile: 0.41812
  • Assignee: [email protected]
  • Published at: 2026-08-20T17:19:40Z
  • Age in days: 96
  • Modified at: 2026-10-18T20:10:00Z
  • References total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71492
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
  • Tags:
Url
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

Projects

RepositoryLink kindsIndexedUrl
masci/bankscommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/masci/banks

Index

  • Repositories: 27
  • Repositories high signal: 15
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts