Security advisory2026-12-01codebase-memory-mcp projectSecurity advisory

codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer

The indexer's own .gitignore matcher implemented and by backtracking without a bound. A pattern crafted with many wildcards, matched against a long path, made the matcher's work grow exponentially, so a repository could…

What happened

  • codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexerSecurity Advisory GHSA-cjhf-76h2-4hwg
  • The indexer's own .gitignore matcher implemented and by backtracking without a bound. A pattern crafted with many wildcards, matched against a long path, made the matcher's work grow exponentially, so a repository could stall discovery indefinitely with a single ignore rule.Advisory description (GHSA-cjhf-76h2-4hwg)

The failure pattern

Watch the pattern: AI action exceeds its intended scope

Related standards

CollectSEA's mapping through this incident's failure pattern; not an official determination by the standards bodies.

Building something similar?

Describe your design and see every precedent that applies, with safeguards you can hand to your coding agent.

Analyze your design
Security advisory2026-12-01AI agent

Security issue reported in mcp-use

A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor.

AI action exceeds its intended scopenvd.nist.gov