Description
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.
Published: 2026-06-02
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A weakness within the search_code_advanced component of the code-index-mcp project allows an attacker to supply a malicious regular expression that triggers excessive CPU consumption. This is a classic regular expression denial of service (RegexDoS) flaw, identified as CWE‑1333, and it can also lead to resource exhaustion, CWE‑400. The attack can be launched remotely by submitting the crafted pattern through the search interface, potentially rendering the service unresponsive for legitimate users.

Affected Systems

The vulnerability affects the code-index-mcp project by johnhuang316, specifically all releases up to and including version 2.14.0. The problem resides in the is_safe_regex_pattern function of the search_code_advanced module. Any deployment of these versions without the patch is at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity, and the publicly available exploit demonstrates that the flaw can be abused without authentication. Although the EPSS score is not available, the existence of an open source exploit and the ability to trigger runaway regular expression execution suggest a non‑negligible likelihood of exploitation, especially in publicly exposed deployments. The failure mode is service disruption rather than data breach, and the vulnerability is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on June 3, 2026 at 03:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade code-index-mcp to version 2.14.1 or later, applying the patch commit 25bc02fac74051ddae15ce79e952f00211b1ea6b.
  • If immediate upgrade is not possible, limit the size and complexity of regular expressions processed by the search_code_advanced component, or disable regex processing for unauthenticated requests.
  • Monitor application load and CPU usage for patterns of long-running regex evaluations, and review logs for abnormal request activity.

Generated by OpenCVE AI on June 3, 2026 at 03:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 03 Jun 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 03 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
Description 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.
Title johnhuang316 code-index-mcp search_code_advanced is_safe_regex_pattern redos
First Time appeared Johnhuang316
Johnhuang316 code-index-mcp
Weaknesses CWE-1333
CWE-400
CPEs cpe:2.3:a:johnhuang316:code-index-mcp:*:*:*:*:*:*:*:*
Vendors & Products Johnhuang316
Johnhuang316 code-index-mcp
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

Johnhuang316 Code-index-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-06-03T14:10:25.259Z

Reserved: 2026-06-02T15:43:28.477Z

Link: CVE-2026-10692

cve-icon Vulnrichment

Updated: 2026-06-03T14:10:20.453Z

cve-icon NVD

Status : Received

Published: 2026-06-03T00:16:31.143

Modified: 2026-06-03T00:16:31.143

Link: CVE-2026-10692

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-03T10:54:16Z

Weaknesses