Claude Code has an MCP security problem — and your developers are already using it

This opinion piece warns that Anthropic's AI coding assistant, Claude Code, has a critical security vulnerability involving the Model Context Protocol (MCP). Researchers at Mitiga Labs demonstrated an attack chain where a malicious npm package with a post-install hook rewrites a single configuration file (~/.claude.json), which controls how Claude Code routes MCP traffic. This redirects authenticated requests and OAuth tokens (stored in plaintext) to attacker-controlled infrastructure instead of legitimate services like Jira, Confluence, or GitHub. The attacker then holds valid long-lived bearer tokens. The attack is difficult to detect because provider audit logs show Anthropic’s IP range and a valid user session — nothing appears wrong, but the user did not initiate the actions. Anthropic responded that the issue was out of scope, reasoning that prior code execution requires user consent to install the package, and as of this writing no patch exists. The article notes previous vulnerabilities in Claude Code (CVE-2025-59536 and CVE-2026-21852) that followed a similar pattern of exploiting configuration files as active execution paths. The author advises security teams to monitor ~/.claude.json for unexpected changes, treat npm post-install hooks as a first-class security concern, and audit and rotate OAuth tokens connected to Claude Code integrations. The piece concludes that developers are already using Claude Code, and security teams must implement detection and response now rather than waiting for a vendor patch. 

https://www.csoonline.com/article/4181230/claude-code-has-an-mcp-security-problem-and-your-developers-are-already-using-it.html

Comments

Popular posts from this blog

Prompt Engineering Demands Rigorous Evaluation

SecObserve: Simplified Vulnerability and License Management for CI/CD Pipelines

NIST Updates Guidelines: Focus on Strong Passwords and MFA Over Frequent Rotation