Advisory record · GHSA-hmq2-7hp6-7crh

Banks: User-controlled prompt input can be parsed as privileged chat messages

CVSS 6.5 MediumEPSS 0.0034 · 27th percentile

Published by the GitHub Advisory Database at 8 Oct 2026, 22:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
banksPyPI<2.5.02.5.0
Identifiers
GHSA-hmq2-7hp6-7crh · CVE-2026-107717 · PYSEC-2026-4202
Weakness (CWE)
CWE-20
Tags
Published
8 Oct 2026
Updated
15 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Banks versions before 2.5.0 are vulnerable. Prompt.chat_messages() parses each rendered output line as a chat message JSON object, so user-controlled template input that renders as JSON with a role such as system can be returned as a privileged message. An attacker who can supply input to an application that renders untrusted text with this method and passes the results directly to an LLM provider could inject system, assistant, or tool messages and override intended instructions. Upgrade to Banks 2.5.0 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0034, the 27th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.