Claude Code Desktop preview window vulnerability chain can steal local keys
Start here
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
- Hacker NewsHacker News· DiscussionClaude Code Desktop Vulnerability: Preview Pane Data Exfiltration(opens the original post in a new tab)
- Dark ReadingSelectedAnthropic 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.
- Noma SecuritySelectedNoma 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.
- Noma SecuritySelectedNoma 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
- Older than 72 hours · Not included in the 72-hour figures
- X@HackRead · Hackread.comClaude Code Desktop’s preview pane could let malicious HTML steal SSH keys, cloud credentials, GitHub and npm tokens. A…(opens the original post in a new tab)
9 likes · 1 comments·Oct 17 09:34Collect
- X@tsnmediahub · tsn_hub🔐 A preview pane that could read your secrets. Noma Labs details SneakPeek, a now-fixed Claude Code Desktop flaw it sa…(opens the original post in a new tab)
- X@bitsquin · BitsquinSECURITY: Noma Labs found SneakPeek vulnerability in Claude Code Desktop v1.30096.1 allowing malicious JS in HTML previ…(opens the original post in a new tab)
- X@T1doo_AI · T1dooClaude Code Desktop once had a high-severity security vulnerability! Noma Labs disclosed SneakPeek: certain malicious HTML files could exploit the preview mechanism to read sensitive information such as SSH keys and cloud service credentials. The vulnerability is rated CVSS 8.7. A...(opens the original post in a new tab)
5 likes · 4 comments·Oct 18 09:34Collect
- X@The_Tradesman1 · THE TRADESMAN 📈A file over 256KB let Claude Code Desktop leak your keys Clone a repo, ask Claude to review its coverage report, and y…(opens the original post in a new tab)
1 comments·Oct 16 21:33Collect
- X@swif_ai · SwifClaude Code Desktop previewed HTML over 256KB as file:// with no CSP; a padded report in a cloned repo could read SSH a…(opens the original post in a new tab)
- X@dsoch8c · ColbyLet Claude Code take a quick look at your code test report, and the SSH private keys and cloud service credentials on your computer may already be stolen. Security team Noma Labs disclosed the high-risk vulnerability chain SneakPeek in Claude Code Desktop, with an official rating score of...(opens the original post in a new tab)
- X@T1doo_AI · T1dooA serious Claude Code Desktop flaw has been disclosed. Noma Labs says SneakPeek could expose SSH keys, cloud credentia…(opens the original post in a new tab)
- X@cc_lab_jp · Claude Code Lab @CWorksLA vulnerability "SneakPeek" exists in the preview pane of Claude Code Desktop (announced by Noma Labs, 10/14). If a malicious HTML file over 256KB is reviewed or edited, it is automatically rendered, and API keys or SSH keys could be stolen. No...(opens the original post in a new tab)
1 comments·Oct 16 15:33Collect
- X@GSerojales · 兔米api中转占@chenYijl Reviewing an HTML file conveniently lets them review your SSH as well; the preview pane is a deep-hidden attack surface.(opens the original post in a new tab)
- X@DarkReading · Dark ReadingAnthropic 'SneakPeek' Flaw Is a Silent Zero-Click Threat https://bit.ly/4yKeZ5k by Becky Bracken(opens the original post in a new tab)
6 likes · 4 comments·Oct 17 15:34Collect
- X@hexawow · hexawowHow the Preview Pane in Claude Code Desktop Can Exfiltrate Your Data - Noma Labs discovered an exploit chain in Claude…(opens the original post in a new tab)
1 likes · 1 comments·Oct 18 09:34Collect