{"api_version":"1","generated_at":"2026-10-09T15:14:35+00:00","cve":"CVE-2026-107717","urls":{"html":"https://cve.report/CVE-2026-107717","api":"https://cve.report/api/cve/CVE-2026-107717.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-107717","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-107717"},"summary":{"title":"Banks: User-controlled prompt input can be parsed as privileged chat messages","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-10-08 22:17:27","updated_at":"2026-10-08 22:17:27"},"problem_types":["CWE-20","CWE-20 CWE-20: Improper Input Validation"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"6.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"6.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/masci/banks/releases/tag/v2.5.0","name":"https://github.com/masci/banks/releases/tag/v2.5.0","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/masci/banks/commit/02172b816fb84f6a824cc09a8aca7416f53c12cb","name":"https://github.com/masci/banks/commit/02172b816fb84f6a824cc09a8aca7416f53c12cb","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/masci/banks/pull/78","name":"https://github.com/masci/banks/pull/78","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/masci/banks/security/advisories/GHSA-hmq2-7hp6-7crh","name":"https://github.com/masci/banks/security/advisories/GHSA-hmq2-7hp6-7crh","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-107717","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107717","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"masci","product":"banks","version":"affected < 2.5.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"banks","vendor":"masci","versions":[{"status":"affected","version":"< 2.5.0"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-08T21:38:07.447Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/masci/banks/security/advisories/GHSA-hmq2-7hp6-7crh","tags":["x_refsource_CONFIRM"],"url":"https://github.com/masci/banks/security/advisories/GHSA-hmq2-7hp6-7crh"},{"name":"https://github.com/masci/banks/pull/78","tags":["x_refsource_MISC"],"url":"https://github.com/masci/banks/pull/78"},{"name":"https://github.com/masci/banks/commit/02172b816fb84f6a824cc09a8aca7416f53c12cb","tags":["x_refsource_MISC"],"url":"https://github.com/masci/banks/commit/02172b816fb84f6a824cc09a8aca7416f53c12cb"},{"name":"https://github.com/masci/banks/releases/tag/v2.5.0","tags":["x_refsource_MISC"],"url":"https://github.com/masci/banks/releases/tag/v2.5.0"}],"source":{"advisory":"GHSA-hmq2-7hp6-7crh","discovery":"UNKNOWN"},"title":"Banks: User-controlled prompt input can be parsed as privileged chat messages"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-107717","datePublished":"2026-10-08T21:38:07.447Z","dateReserved":"2026-10-08T17:21:52.975Z","dateUpdated":"2026-10-08T21:38:07.447Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-08 22:17:27","lastModifiedDate":"2026-10-08 22:17:27","problem_types":["CWE-20","CWE-20 CWE-20: Improper Input Validation"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":2.5}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"107717","Ordinal":"1","Title":"Banks: User-controlled prompt input can be parsed as privileged ","CVE":"CVE-2026-107717","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"107717","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Banks: User-controlled prompt input can be parsed as privileged "}]}}}