GHSA-hmq2-7hp6-7crh: Banks: User-controlled prompt input can be parsed as privileged chat messages
- Identifiers
- CVE-2026-107717GHSA-hmq2-7hp6-7crh
- Published
- Record updated
- Affected
- banks <= 2.4.5
- Fixed in
- 2.5.0
- released August 8, 2026, 61 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%
Summary
Banks' `Prompt.chat_messages()` method parses every rendered output line as a possible `ChatMessage` JSON object. If attacker-controlled template data renders to JSON such as `{"role":"system","content":"..."}`, Banks returns it as a privileged `system` message rather than plain user text. Applications that render untrusted input with this method and pass the results directly to an LLM provider may be exposed to chat role injection and prompt boundary bypass, with practical impact depending on how the application uses Banks.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- banksPyPILLM dependency since 2023-06-04 · 2 tracked dependents
Related items
- HighCVE-2026-133448: AutoGPT Claude Code CLI prompt preprocessing bypasses tool allow-listSimilar attack · NVD/CVE Database
- LowElastic ships 143 detection rules for AI agents and LLM platformsSimilar attack · Elastic Security Labs
- InfoThinking fast about prompt injection: New System 1 models in ElasticSimilar attack · Elastic Security Labs
- InfoConartist: Adaptive Agentic Red-Teaming of Computer-Using Agents against Multi-Step Prompt InjectionSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- InfoTracing Attacker Diversity Reduction in Adaptive LLM Red TeamingSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)