Back to list

Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root — GHSA-X8WG-4XGC-VR54

GitHub · GitHub · GHSA-X8WG-4XGC-VR54

ID
GHSA-X8WG-4XGC-VR54
Date
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
6
EPSS
0.00323

Summary

## Summary `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. ## Details `src/banks/registries/directory.py:44` ```python prompt_file = path / f"{prompt.name}.{prompt.version}.jinja"…

Timeline

Published by source
2026-09-02

Risk context

  • Reported severity or threat level: medium.
  • Reported CVSS score: 6 out of 10.
  • Reported EPSS value: 0.00323.
  • Review exposure for the affected product or family: pip: banks.

Product

pip: banks

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-X8WG-4XGC-VR54
Source
GitHub
Vendor
GitHub
Published by source
2026-09-02
Last source activity
2026-09-02
Additional identifiers
CVE-2026-71492
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.