Skip to content

AAK-MCP-CLAUDECODE-CVE-2026-103012-001: Claude Code 2.0.68 to 2.1.259 fetched managed settings with a stored API key ahead of the Enterprise or Team sign-in

Severity
LOW
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
ClaudeCodeManagedSettingsStoredKey

What it detects

Claude Code (@anthropic-ai/claude-code, npm) applies an organization's server-managed settings: permission deny rules, model restrictions and managed-only locks. From 2.0.68 (Claude for Enterprise; from 2.1.38 for Team) until 2.1.260 it fetched those settings with an API key stored by Claude Code, from an earlier /login or written to its configuration, ahead of the session's valid Enterprise or Team sign-in. When the settings endpoint rejected that key, the session started without the organization's policy, or kept applying a stale cached copy, while still operating as the organization's account (CVE-2026-103012, CVSS 4.0 2.0, CWE-696, GHSA-gfvf-j8jh-jxxw). Triggering it needed local access to a device holding such a key. Endpoint-managed (MDM or file-based) settings were not affected, and auto-update has delivered the fix.

How to fix

Upgrade @anthropic-ai/claude-code to 2.1.260 or later and pin it, or leave auto-update on. Remove stored API keys from machines that sign in with an Enterprise or Team account.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-CLAUDECODE-CVE-2026-103012-001

Limitations

Reports @anthropic-ai/claude-code from 2.0.68 up to 2.1.260 where a project states its version: a package.json or lockfile entry, or a versioned npx reference in an MCP config. An unpinned reference is not reported, as for the folder-trust pin on the same package: it resolves to the newest release, and the CLI updates itself. A global install, the usual one, is in no file AAK reads. A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-CLAUDECODE-CVE-2026-103012-001.md: the page then shows that text, with the registry reference appended under it.