NewsResearch
SneakPeek: a web page Claude Code Desktop previewed could read a developer's keys and send them out, no click needed
Noma Security's Eli Ainhorn found that Claude Code Desktop's preview pane, which renders HTML files Claude creates or edits, ran their JavaScript, CSO Online reported on October 14. A malicious HTML file in a public repository could, when a developer asked Claude Code to look at it, read AWS credentials, GitHub secrets and SSH keys from the machine and send them to a remote server, in the renderer rather than as an agent action, so agent logs would not show it. Files under 256 KB were rendered as data URLs under a strict content security policy; larger ones were written to disk and loaded from a file:// address that bypassed the policy and gave file-system access, and a filter meant to block that was inactive during static rendering. Anthropic's first patch was bypassed by moving the read into a Web Worker; a deeper fix followed and Noma says the issue is fully resolved. Anthropic rated it CVSS 8.7 and requested a CVE; it did not respond to CSO. Affected versions were not published.
Why it matters
A preview pane is a browser with a file system behind it, and what it renders from someone else's repository is untrusted web content. Update the app, keep long-lived credentials off developer machines, and watch file reads and outbound connections at the runtime layer.