# CVE-2026-62663: masci banks path traversal in media filters

Source: https://junglewise.ai/threats/cve-2026-62663-masci-banks-path-traversal-in-media-filters  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-30. Updated: 2026-07-30  
License: CC BY 4.0 with a link back

CVE-2026-62663 · Severity: high · CVSS 7.5 · Published 2026-07-30

Banks is a Python library used to generate prompts for Large Language Models (LLMs) using a template language. In versions prior to 2.4.4, the library's media filters (image, audio, video, and document) do not properly check file paths provided by users. This allows an attacker to read sensitive files from the server's filesystem—such as configuration files, SSH keys, and cloud credentials—by including them in a prompt template.

Technologies: [Masci Banks](https://junglewise.ai/threats/technologies/banks). Vendors: [Masci](https://junglewise.ai/threats/vendors/masci).

## Quick answers

**Is CVE-2026-62663 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-62663 being exploited in the wild.

**How severe is CVE-2026-62663?** High severity, with a CVSS score of 7.5, published 30 July 2026.

**Which products and versions are affected?** Masci Banks < 2.4.4.

**Is there a fix for CVE-2026-62663?** A patch was published on 2026-07-30: Fix released in version 2.4.4 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-62663 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-62663?** Check whether you run Masci Banks at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in the media filters (image, audio, video, and document) of the banks library. The root cause is located in the `from_path` methods within `types.py`, where user-supplied strings are converted to `Path` objects and passed directly to `open(file_path, "rb")` without sanitization or directory restriction. An attacker who can control template variables can use `../` sequences to escape intended directories and read any file accessible to the Python process. The contents of the accessed files are base64-encoded and embedded in the rendered prompt output, facilitating easy exfiltration. This issue is fixed in version 2.4.4.

## Affected products

- masci banks < 2.4.4

## Timeline

- 2026-07-07: advisory: GitHub Security Advisory published
- 2026-07-30: disclosed: CVE published to NVD
- 2026-07-30: patched: Fix released in version 2.4.4

## References

- [https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh](https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh)

## Related threats

- [masci banks remote code execution via unsafe Tool import_path](https://junglewise.ai/threats/cve-2026-61536-masci-banks-remote-code-execution-via-unsafe-tool-import-path)
- [masci banks Remote Code Execution via SSTI in Prompt templates](https://junglewise.ai/threats/cve-2026-44209-masci-banks-remote-code-execution-via-ssti-in-prompt-templates)
