Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. banks
  4. ›
  5. CVE-2026-44209

CVE-2026-44209: banks has Critical Remote Code Execution (RCE) via Jinja2 SSTI

May 8, 2026

banks <= 2.4.1 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 is a vulnerability in how banks initializes its Jinja2 environment — not in Jinja2 itself.

References

  • github.com/advisories/GHSA-gphh-9q3h-jgpp
  • github.com/masci/banks
  • github.com/masci/banks/pull/74
  • github.com/masci/banks/security/advisories/GHSA-gphh-9q3h-jgpp
  • nvd.nist.gov/vuln/detail/CVE-2026-44209

Code Behaviors & Features

Detect and mitigate CVE-2026-44209 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.2

Fixed versions

  • 2.4.2

Solution

Upgrade to version 2.4.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

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

Source file

pypi/banks/CVE-2026-44209.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:30 +0000.