Skip to content

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

MediumCVSS 6.5 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Red Hat

Description

Banks generates meaningful LLM prompts using a simple template language. Prior to 2.5.0, Banks Prompt.chat_messages() attempts to parse every line of rendered template output as ChatMessage JSON. When an application renders untrusted data and passes the returned ChatMessage objects to an LLM provider, attacker-controlled JSON can cross the prompt boundary and become a system, assistant, or tool message because ChatMessage.role accepts arbitrary strings. This can override application instructions, alter the intended prompt structure, or confuse downstream tool and message handling. This issue is fixed in version 2.5.0.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
pypi banks(PyPI) < 2.5.0; <= 2.4.5; = 0.0.1; = 0.0.2 +34 more 2.5.0 Fixed
masci banks = < 2.5.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi banks(PyPI) < 2.5.0 2.5.0
pypi banks(PyPI) = 0.0.1 No fix listed
pypi banks(PyPI) = 0.0.2 No fix listed
pypi banks(PyPI) = 0.0.3 No fix listed
pypi banks(PyPI) = 0.1.0 No fix listed
pypi banks(PyPI) = 0.1.1 No fix listed
pypi banks(PyPI) = 0.2.0 No fix listed
pypi banks(PyPI) = 0.3.0 No fix listed
pypi banks(PyPI) = 0.3.1 No fix listed
pypi banks(PyPI) = 0.4.1 No fix listed
pypi banks(PyPI) = 0.5.0 No fix listed
pypi banks(PyPI) = 0.6.0 No fix listed
pypi banks(PyPI) = 1.0.0 No fix listed
pypi banks(PyPI) = 1.1.0 No fix listed
pypi banks(PyPI) = 1.2.0 No fix listed
pypi banks(PyPI) = 1.2.1 No fix listed
pypi banks(PyPI) = 1.3.0 No fix listed
pypi banks(PyPI) = 1.4.0 No fix listed
pypi banks(PyPI) = 1.5.0 No fix listed
pypi banks(PyPI) = 1.6.0 No fix listed
pypi banks(PyPI) = 1.6.1 No fix listed
pypi banks(PyPI) = 1.7.0 No fix listed
pypi banks(PyPI) = 1.7.1 No fix listed
pypi banks(PyPI) = 1.8.0 No fix listed
pypi banks(PyPI) = 2.0.0 No fix listed
Show 19 more
ProductAffected versionsFixed in
pypi banks(PyPI) = 2.1.0 No fix listed
pypi banks(PyPI) = 2.1.1 No fix listed
pypi banks(PyPI) = 2.1.2 No fix listed
pypi banks(PyPI) = 2.1.3 No fix listed
pypi banks(PyPI) = 2.2.0 No fix listed
pypi banks(PyPI) = 2.3.0 No fix listed
pypi banks(PyPI) = 2.4.0 No fix listed
pypi banks(PyPI) = 2.4.1 No fix listed
pypi banks(PyPI) = 2.4.2 No fix listed
pypi banks(PyPI) = 2.4.3 No fix listed
pypi banks(PyPI) = 2.4.4 No fix listed
pypi banks(PyPI) = 2.4.5 No fix listed
masci banks = < 2.5.0 No fix listed
redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) All versions No fix listed
redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) All versions No fix listed
redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) All versions No fix listed
redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat:openshift_lightspeed:1) All versions No fix listed
redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat:ansible_automation_platform:2) All versions No fix listed
pypi banks(PyPI) <= 2.4.5 No fix listed

References