Home

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.

PUBLISHED Reserved 2026-05-05 | Published 2026-05-26 | Updated 2026-05-28 | Assigner GitHub_M




HIGH: 7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Problem types

CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine

Product status

< 2.4.2
affected

References

github.com/.../banks/security/advisories/GHSA-gphh-9q3h-jgpp exploit

github.com/.../banks/security/advisories/GHSA-gphh-9q3h-jgpp

github.com/masci/banks/pull/74

cve.org (CVE-2026-44209)

nvd.nist.gov (CVE-2026-44209)

Download JSON