Live threats

All CVEs / masci

CVE-2026-71492masci banks

Medium 6.0

Priority
36
CVSS 4.0
6.0
EPSS
—
Auth required
Yes
Published
Aug 20, 2026
Updated
Oct 18, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for banks.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI banks < 2.4.5 2.4.5 pip install "banks>=2.4.5"
PyPI banks < 2.4.5 2.4.5 pip install "banks>=2.4.5"

Per OSV / GitHub Advisories (GHSA-x8wg-4xgc-vr54, PYSEC-2026-3810). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.