Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. banks
  4. ›
  5. CVE-2026-71492

CVE-2026-71492: Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root

September 2, 2026

DirectoryPromptRegistry.set() interpolates the attacker-controllable Prompt.name into a Path expression with no canonicalization. An application that derives the prompt name from request data lets a caller write attacker-controlled bytes outside the configured registry directory.

References

  • github.com/advisories/GHSA-x8wg-4xgc-vr54
  • github.com/masci/banks/commit/a215f6d779966945c56e0af5abed1ae5916fd9d3
  • github.com/masci/banks/pull/77
  • github.com/masci/banks/releases/tag/v2.4.5
  • github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54
  • nvd.nist.gov/vuln/detail/CVE-2026-71492

Code Behaviors & Features

Detect and mitigate CVE-2026-71492 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.5

Fixed versions

  • 2.4.5

Solution

Upgrade to version 2.4.5 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/banks/CVE-2026-71492.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 07 Sep 2026 12:18:13 +0000.