Skip to content
MediumVulnerabilityLLM-specific

GHSA-hmq2-7hp6-7crh: Banks: User-controlled prompt input can be parsed as privileged chat messages

Published
Record updated
View JSON
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.