CVE-2026–10692: When a Search Feature Can Take Down Your AI Cod
A function meant to validate regular expressions in the search_code_advanced feature of code-index-mcp failed to prevent catastrophic backtracking. An authenticated attacker could send a crafted regex that consumes excessive CPU and makes the service unresponsive.
Published on medium.com
When you use an AI-powered coding assistant that can search through your codebase, you probably assume it’s safe. But a recently published security vulnerability — CVE-2026–10692 — shows that even a simple search feature can become a weapon in the wrong hands.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the is_safe_regex_pattern function did not adequately detect or block regex patterns that cause catastrophic backtracking.
Impact
An authenticated user could remotely cause a denial of service by exhausting CPU, making the service slow or unresponsive; no data is stolen.
What the attacker needed
A basic account on a system using the tool; network access to the service
The fix
The issue was fixed in version 2.14.1 (commit 25bc02f); using a regex engine such as RE2 that avoids backtracking is also suggested.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A regular expression is a pattern used to search text. Some patterns can make a computer do an enormous amount of repeated work, which is called catastrophic backtracking. Here, a safety check that was supposed to block dangerous patterns did not work, so a logged-in user could send such a pattern and slow the whole service down for everyone.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.