Advisory

PYSEC-2026-2421

Also known as: CVE-2026-10692, GHSA-647r-72hf-4vmh

Summary

Code Index MCP is vulnerable to Uncontrolled Resource Consumption

Details

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.

Severity

Medium Basis: CVSS v3 score 4.3, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

code-index-mcp

PyPI · All systems

Affected

  • introduced 0, fixed 2.14.1 (ecosystem)

Fixed versions

2.14.1

Fix

  • Fixed version 2.14.1
    pip install --upgrade code-index-mcp==2.14.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences