← All advisories

CVE-2026-124028mediumPrompt injection2026-11-06

CVE-2026-124028: mistral.rs tool-call parsers let delimiter strings in quoted documents, web pages or tool output forge extra tool calls (fixed 0.9.5)

mistralrs-core found tool-call regions by matching delimiters such as <tool_call>, </parameter> and </tool_call> in decoded text before interpreting argument contents. If the model quoted attacker-controlled text (a support ticket, web page, file or another tool's output) containing those tags, the qwen-xml and gemma4 parsers returned an extra tool call with attacker-chosen arguments, and quoted text could also end the reasoning span and be parsed as a tool call the model never made. Fixed in 0.9.5.

01.

What it is

The model emits one call, but mistralrs-core returns two; the forged call is assembled from bytes in the runtime document. It needs no malicious model file, tokenizer or chat template.

Limit from the advisory: the forged tool name must already be declared. The reporters claim tool-call integrity impact only, not code execution or denial of service; real impact depends on what your declared tools can do.

GitHub advisory published 18 October 2026; NVD published CVE-2026-124028 on 6 November 2026. Fixed in v0.9.5 (PR #2455, commit b43d344).

02.

How to check

  1. Check whether you use mistral.rs (mistralrs-core) with tool calling, especially Qwen-XML or Gemma 4 formats or reasoning models; versions before 0.9.5 are affected.
03.

How to fix

  1. Upgrade mistral.rs / mistralrs-core to 0.9.5 or later.
  2. Validate tool-call arguments server-side and require confirmation for tools with side effects, regardless of the parser.
cargo tree -i mistralrs-core   # or: mistralrs-server --version
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.