Symlink Attack Affecting banks package, versions [,2.5.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Symlink Attack vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-BANKS-20849558
  • published13 Oct 2026
  • disclosed8 Oct 2026
  • creditjankesec

Introduced: 8 Oct 2026

NewCVE-2026-107716  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade banks to version 2.5.1 or higher.

Overview

banks is an A prompt programming language

Affected versions of this package are vulnerable to Symlink Attack via the _resolve_prompt_file function in src/banks/registries/directory.py, where prompt file paths are resolved by following symbolic links before writing content. An attacker with local access who can place a symlink inside the prompt registry directory can cause the registry to write arbitrary content to any file the process has permission to write, leading to privilege escalation or data corruption.

CVSS Base Scores

version 4.0
version 3.1