When you tell Claude Code “Yes, and don’t ask again,” it saves the approved command word for word, password included. Researchers found more than a thousand of those files on public GitHub with secrets inside.
Security firm Apiiro searched GitHub from November 1 to 3, 2026, and found 1,122 public copies of Claude Code’s local settings file holding at least one secret. Counting older commits, forks and the shared project settings file, it found 2,539 secrets in 1,994 repositories.
Apiiro did not test whether the credentials still work. It contacted affected organizations, and one confirmed that its exposed key had been live.
Source: Privacy Affairs · 2026-11-08