Skip to content
MediumNewsLLM-specific

Claude Code OAuth Tokens Can Be Stolen Through Stealthy MCP Hijacking

Published
Record updated
View JSON

Summary

Mitiga Labs reported that a tailored npm package can redirect Claude Code MCP traffic through an attacker's proxy, exposing OAuth tokens stored in plain text in ~/.claude.json. The attack requires installing the package on a machine where Claude Code is configured with dynamic authorization MCP servers, and the post-install hook persists across token rotation. Mitiga reported the issue to Anthropic on April 10, 2026, and Anthropic replied on April 12, 2026 that it was out of scope.