Skip to main content

code-index-mcp EUVDEUVD-2026-34057

| CVE-2026-10692 LOW
Uncontrolled Resource Consumption (CWE-400)
2026-06-03 cna@vuldb.com GHSA-647r-72hf-4vmh
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to code-index-mcp with low-privilege credentials
  2. Delivery
    Invoke search_code_advanced tool with crafted regex argument
  3. Exploit
    is_safe_regex_pattern validation fails to reject backtracking pattern
  4. Execution
    Regex engine enters exponential backtracking on input string
  5. Persist
    CPU resources exhausted
  6. Impact
    MCP 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 search_code_advanced tool and control the regex argument. In affected versions up to 2.14.0, regex mode was enabled by default without requiring an explicit opt-in flag, meaning any authenticated caller could supply a regex pattern. Post-patch (v2.14.1), regex requires explicit regex=True and a native search tool, substantially narrowing the exploitable surface. Exploitation is strictly limited to denial of service against the MCP server process (VA:L); no confidentiality or integrity impact is achievable. The vulnerability does not require any specific non-default system configuration beyond the presence of an unpatched version - regex was opt-out, not opt-in, in versions up to 2.14.0.

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 (a+)+b against a non-matching input - as the regex argument to the search_code_advanced endpoint. The is_safe_regex_pattern function fails to detect the pathological pattern, the regex engine enters exponential backtracking, and the MCP server process pegs CPU utilization, rendering it unresponsive to further requests. A public proof-of-concept exploit exists per the CVSS 4.0 E:P modifier, lowering the technical barrier for exploitation.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

code-index-mcp 2.8
code-index-mcp 2.10
code-index-mcp 2.7
code-index-mcp 2.5
code-index-mcp 2.9
code-index-mcp 2.14.0
code-index-mcp 2.3
code-index-mcp 2.4
code-index-mcp 2.6
code-index-mcp 2.0
code-index-mcp 2.12
code-index-mcp 2.2
code-index-mcp 2.13
code-index-mcp 2.11
code-index-mcp 2.1

Affected Packages

pypi code-index-mcp fix: 2.14.1

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

Vendor (vuldb) PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy