---
id: "CVE-2026-103012"
page: "https://infrastack.ai/live/CVE-2026-103012"
kind: "vulnerability"
aliases: ["CVE-2026-103012", "GHSA-gfvf-j8jh-jxxw"]
title: "Managed Settings Not Applied When a Stored API Key Was Preferred Over Enterprise Sign-In"
severity: "low"
cvss: 2.0
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "@anthropic-ai/claude-code", "fixed": ["2.1.260"], "affected": ">= 2.0.68, < 2.1.260", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["ai-tooling", "claude-code", "cwe-696", "enterprise", "npm", "team"]
not_affected_if: ["auto-updated", "endpoint-managed-settings", "no-stored-api-key"]
published_at: "2026-09-29T21:44:55+00:00"
first_seen_at: "2026-11-09T22:53:24+00:00"
updated_at: "2026-11-09T23:01:19+00:00"
sources: [{"source": "ghsa-repo", "url": "https://github.com/anthropics/claude-code/security/advisories/GHSA-gfvf-j8jh-jxxw", "first_seen_at": "2026-11-09T22:53:24+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-103012", "first_seen_at": "2026-11-09T23:10:12+00:00"}]
exploit_sources: []
---

# Managed Settings Not Applied When a Stored API Key Was Preferred Over Enterprise Sign-In

Link for people: https://infrastack.ai/live/CVE-2026-103012 (this .md is for agents)

Claude Code could pick a stored API key over a valid Enterprise or Team sign-in when fetching organization server-managed settings. When the settings endpoint rejected that key, the session ran without the organization's policy or with a stale cached copy.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@anthropic-ai/claude-code affected >= 2.0.68, < 2.1.260 fixed 2.1.260

## How to check

- Check the installed version with `claude --version` and compare it against the affected range below.
- Look for a stored API key in Claude Code's configuration if the machine is used with an Enterprise or Team account.

## Fix

- `@anthropic-ai/claude-code` `2.1.260`

## Timeline

- 2026-11-09T22:53:24+00:00 ghsa-repo https://github.com/anthropics/claude-code/security/advisories/GHSA-gfvf-j8jh-jxxw
- 2026-11-09T23:10:12+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-103012

## Documents

- [advisory] Maintainer's advisory: github.com https://github.com/anthropics/claude-code/security/advisories/GHSA-gfvf-j8jh-jxxw

## From the sources

Claude Code selected an API key stored by Claude Code, for example from an earlier `/login` or written directly to its configuration, ahead of the user's valid Claude Enterprise or Team sign-in when fetching the organization's server-managed settings, even though the session itself authenticated with the Enterprise or Team account. When the settings endpoint rejected that stored key, the session started without the organization's server-managed policy (such as permission deny rules, model restrictions and managed-only locks) or, if a previously cached copy existed on the machine, kept applying that stale copy without receiving later policy changes — while continuing to operate as the organization's account. Triggering this required local access to a device with such a stored API key; the no-policy case additionally required that no managed settings had previously been cached. Endpoint-managed (MDM or file-based) settings were not affected. Claude for Enterprise organizations were affected from version 2.0.68; Claude for Work (Team) organizations from version 2.1.38, when server-managed settings became available to them.

Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to version 2.1.260 or later.

Thank you to Tamas Voros / NVIDIA AI Red Team for reporting this issue.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
