Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to code-index-mcp with low-privilege credentials
-
DeliveryInvoke search_code_advanced tool with crafted regex argument
-
Exploitis_safe_regex_pattern validation fails to reject backtracking pattern
-
ExecutionRegex engine enters exponential backtracking on input string
-
PersistCPU resources exhausted
-
ImpactMCP server process becomes unresponsive
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session with at least low-privilege access to the code-index-mcp server (CVSS PR:L - unauthenticated network access is insufficient). The attacker must be able to invoke the |
| Impact | The CVSS 4.0 score of 2.1 accurately reflects the narrow blast radius of this vulnerability. AV:N confirms network reachability, but PR:L requires authenticated low-privilege access, ruling out anonymous internet exploitation. The impact metrics (VC:N/VI:N/VA:L and SC:N/SI:N/SA:N) confirm this is a pure availability issue restricted to the MCP server process - no data exfiltration or integrity compromise is possible. The E:P modifier confirms a public proof-of-concept exists, which slightly elevates realistic exploitation likelihood over a purely theoretical flaw. No EPSS score was included in the input data, so probabilistic exploitation likelihood cannot be quantified. No CISA KEV listing was provided, indicating no confirmed widespread active exploitation at time of analysis. For most organizations, this is a low-priority finding: the impact ceiling is a crashed or stalled MCP server, not a foothold. The primary concern would be environments where the code-index-mcp server is exposed to semi-trusted or untrusted authenticated users who could deliberately trigger service disruption. |
| Exploit ScenarioDerived | An authenticated low-privilege user with access to the code-index-mcp MCP server submits a crafted catastrophically backtracking regex pattern - such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
Uncontrolled resource consumption in johnhuang316 code-index-mcp versions up to 2.14.0 allows an authenticated remote attacker with low privileges to trigger a denial of service by supplying a catastrophically backtracking regex pattern to the search_code_advanced tool's regex argument. The is_safe_regex_pattern validation function fails to reject pathological patterns, causing the MCP server process to exhaust CPU resources and become unresponsive. A public proof-of-concept exploit exists (CVSS 4.0 E:P); no active exploitation via CISA KEV has been reported, and impact is limited to availability of the vulnerable component only.
RemediationAI
Upgrade to code-index-mcp version 2.14.1, which resolves this vulnerability via commit 25bc02fac74051ddae15ce79e952f00211b1ea6b, available at https://github.com/johnhuang316/code-index-mcp/releases/tag/v2.14.1. The patch changes regex mode from always-available to opt-in (regex=True required alongside a native search tool), making the default search mode literal-only and eliminating exposure to malicious patterns in standard deployments. As a compensating control prior to patching, restrict invocation of the search_code_advanced tool to fully trusted users only, since low-privilege authenticated access is sufficient for exploitation; this limits who can supply the crafted regex argument. Disabling or blocking access to the MCP server entirely for untrusted users is also effective but introduces trade-offs for legitimate search functionality.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
code-index-mcp is a Model Context Protocol (MCP) server for code indexing and search, authored by johnhuang316. The vulnerable function is_safe_regex_pattern within the search_code_advanced tool is responsible for validating caller-supplied regular expression patterns before executing search operations. CWE-400 (Uncontrolled Resource Consumption) applies here: the validation logic fails to detect or reject exponentially backtracking patterns - a class of ReDoS (Regular Expression Denial of Service) attack - allowing the underlying regex engine to consume unbounded CPU time on crafted inputs such as nested quantifiers (e.g., (a+)+$). The commit diff confirms the remediation approach: regex mode was changed from always-available to opt-in (regex=True required), and the default search mode reverted to literal-only matching. No CPE string was provided in the input data for this package.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A weakness has been identified in johnhuang316 code-index-mcp up to 2.14.0. Affected is the function is_safe_regex_pattern of the component search_code_advanced. Executing a manipulation of the argument regex can lead to inefficient regular expression complexity. It is possible to launch the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 2.14.1 is able to address this issue. This patch is called 25bc02fac74051ddae15ce79e952f00211b1ea6b. Upgrading the affected component is recommended.
Articles & Coverage 2
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-34057
GHSA-647r-72hf-4vmh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB