Skip to content
OpenAdvisories
High · 7.5 CVE-2026-44209 EUVD-2026-31997GHSA-gphh-9q3h-jgppPYSEC-2026-2390

Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI

Published May 26, 2026 · Updated Jul 24, 2026 · Assigned by GitHub_M

Description

Banks generates meaningful LLM prompts using a template language that makes sense. Prior to 2.4.2, banks uses jinja2.Environment() (unsandboxed) to render prompt templates. Applications that pass user-supplied strings as the template argument to Prompt() are vulnerable to Server-Side Template Injection (SSTI), which can lead to Remote Code Execution (RCE) on the host system. This vulnerability is fixed in 2.4.2.

Affected products

VendorProductAffectedFixed
masci banks < 2.4.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI banks < 2.4.2 2.4.2 GHSA-gphh-9q3h-jgpp

References