Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. banks
  4. ›
  5. CVE-2026-107717

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

October 8, 2026

Banks’ Prompt.chat_messages() method parses every rendered output line as a potential ChatMessage JSON object. If attacker-controlled template data renders to JSON such as {"role":"system","content":"..."}, Banks returns it as a privileged system message instead of treating it as plain user-controlled text.

Applications that render untrusted user input with Prompt.chat_messages() and pass the returned messages directly to an LLM provider may be vulnerable to chat role injection and prompt boundary bypass.

References

  • github.com/advisories/GHSA-hmq2-7hp6-7crh
  • github.com/masci/banks/commit/02172b816fb84f6a824cc09a8aca7416f53c12cb
  • github.com/masci/banks/pull/78
  • github.com/masci/banks/releases/tag/v2.5.0
  • github.com/masci/banks/security/advisories/GHSA-hmq2-7hp6-7crh
  • nvd.nist.gov/vuln/detail/CVE-2026-107717

Code Behaviors & Features

Detect and mitigate CVE-2026-107717 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.5.0

Fixed versions

  • 2.5.0

Solution

Upgrade to version 2.5.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/banks/CVE-2026-107717.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:28 +0000.