Skip to content
EventPast event

Claude Code Desktop preview window vulnerability chain can steal local keys

3 reports3 reporting sourcesLatest report

Start here

AI overview

Noma Labs disclosed a vulnerability chain in Anthropic Claude Code Desktop's preview pane, SneakPeek, with a CVSS score of 8.7. The vulnerability stems from the Electron-based preview pane: HTML files smaller than 256KB are converted to base64 data: URLs with a strict CSP, while files larger than 256KB are written to disk and loaded via file:// URLs, where the CSP does not apply. An attacker places a malicious HTML file disguised as a coverage report, larger than 256KB, in a public repository. After the victim clones it and asks Claude to view the file, the preview pane automatically renders and executes the JavaScript within, enabling arbitrary file reads and silent exfiltration of local credentials without any interaction from the developer. The vulnerability is the result of three architectural flaws chained together: missing content security policy, unrestricted source access, and ineffective request filtering, which can bypass the platform's built-in sandbox. Anthropic has released multi-layered security updates to fix the issue.

Generated by AI from reports · Updated 2026-10-15

Progress timeline

Oct 16
Oct 15
  1. Dark ReadingSelected
    Anthropic Claude Code Desktop's SneakPeek vulnerability is a silent zero-click threat

    Noma researchers disclosed a high-severity zero-click vulnerability, SneakPeek, in Anthropic Claude Code Desktop's preview panel, allowing attackers to silently steal credentials without developer interaction. The vulnerability is caused by three architectural flaws chained together: missing content security policy, unrestricted source access, and ineffective request filtering, which can bypass the platform's built-in sandbox. An attacker deploys a public code repository containing a malicious HTML file padded to over 256KB; when a developer has Claude Code review or edit the file, the preview panel automatically renders and triggers background exfiltration, potentially stealing AWS and GitHub credentials, API keys, and Claude's OAuth token. According to Noma's timeline, the vulnerability was reported on July 4, the first fix on July 9 was bypassed, and the final patch was deployed on August 17. Researchers recommend keeping programming applications updated and moving long-term credentials out of development machines.

Oct 14
  1. Noma SecuritySelected
    Noma Labs discloses SneakPeek, a chain of vulnerabilities in Claude Code Desktop preview window that can silently steal local keys

    Noma Labs has disclosed a chain of vulnerabilities called SneakPeek in Anthropic's Claude Code Desktop, with a CVSS score of 8.7, allowing attackers to silently execute arbitrary JavaScript and exfiltrate local credentials; Anthropic has released multi-layered security updates to fix it. The vulnerability lies in the Electron-based preview window: HTML files smaller than 256KB are converted to base64 data: URLs with strict CSP, while files larger than 256KB are written to disk and loaded directly via file:// URLs, bypassing CSP script blocking and gaining local file system access, and the filter used to block file:// requests was not effective during static file rendering. Anthropic's initial patch blocking fetch() and XMLHttpRequest was bypassed by Web Workers launched from blob: URLs, after which a complete fix covering all execution contexts was deployed.

  2. Noma SecuritySelected
    Noma Labs discloses Claude Code Desktop preview pane data exfiltration vulnerability

    Noma Labs disclosed an exploitation chain in the Claude Code Desktop preview pane: an attacker places an HTML file disguised as a coverage report, larger than 256KB, in a public repository; after the victim clones it and asks Claude to view the file, the preview pane automatically renders and executes the JavaScript within, enabling arbitrary file reading and silent exfiltration of local credentials. The pane loads files smaller than 256KB with a data: URL and applies CSP, while files larger than 256KB are loaded with a file:// URL, where CSP is not applied and request filters do not take effect, allowing scripts to read SSH private keys, AWS keys, npm and GitHub tokens, Kubernetes credentials, and more, and exfiltrate them via sendBeacon().

Related discussion

Total 20 items