CVE-2025-52882: Claude Code Improper Authorization via websocket connections from arbitrary origins
CVE-2025-52882 lets a web page that you visit connect to the local WebSocket server of the Claude Code IDE extensions. The server accepted connections from any origin. Claude Code for VS Code 0.2.116 through 1.0.23 and Claude Code [Beta] for JetBrains 0.1.1 through 0.1.8 are affected. Fixed in 1.0.24 and 0.1.9.
Published Jun 23, 2025 · Updated Jun 27, 2025 · Analysis Nov 1, 2026
What an attacker can do
The Claude Code extensions open a local WebSocket server so the CLI can talk to the IDE. The server did not check the Origin of incoming connections (CWE-1385), so JavaScript on any website could connect to it from the victim's browser. The attacker needs no privileges, only a visit to a page they control.
In VS Code and forks (Cursor, Windsurf, VSCodium) the advisory says an attacker could read arbitrary files, list the files open in the IDE, and receive selection and diagnostics events. Code execution was possible in limited cases: the user must have a Jupyter Notebook open and accept a malicious prompt. In JetBrains IDEs, the attacker could get selection events, the list of open files and syntax errors.
File reads are the main risk. Source code, .env files and keys on a developer machine could leave through a drive-by page. The CVSS 4.0 vector reflects this with high confidentiality and integrity impact and passive user interaction. The patch shipped on June 13, 2025.
Who is affected
Claude Code for VS Code and its forks, versions 0.2.116 through 1.0.23. Claude Code [Beta] for JetBrains IDEs (IntelliJ, PyCharm, Android Studio), versions 0.1.1 through 0.1.8. The npm package @anthropic-ai/claude-code is listed from 0.2.116 up to 1.0.24.
Check the CLI version:
claude --versionIn VS Code, open View then Extensions and read the version of Claude Code for VSCode. In a JetBrains IDE, open the Plugins list and read the version of Claude Code [Beta].
@anthropic-ai/claude-code
- Ecosystem
- npm
- Affected
- >= 0.2.116, < 1.0.24
- Fixed in
- 1.0.24
- Check
npm ls @anthropic-ai/claude-code
How to fix it
Update to Claude Code for VS Code 1.0.24 or later, or Claude Code [Beta] for JetBrains 0.1.9 or later, then restart the IDE. The steps from the advisory: open the extension or plugin list, find the Claude Code entry, update it (or uninstall if you cannot), and restart.
For the CLI package:
npm install -g @anthropic-ai/claude-code@latestThe extensions auto-update, but the advisory asks you to confirm the version by hand.
How to tell if you were hit
The advisory gives no log signature. Check that the extension version is at least 1.0.24 (VS Code) or 0.1.9 (JetBrains). On machines that ran older versions, think about whether the user browsed untrusted sites while the IDE integration was running, and whether any sensitive files were open in the IDE. Review unexpected prompts in an open Jupyter Notebook.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Claude Code extensions in VSCode and forks (e.g., Cursor, Windsurf, and VSCodium) and JetBrains IDEs (e.g., IntelliJ, Pycharm, and Android Studio) are vulnerable to unauthorized websocket connections from an attacker when visiting attacker-controlled webpages. Claude Code for VSCode IDE extensions versions 0.2.116 through 1.0.23 are vulnerable. For Jetbrains IDE plugins, Claude Code [beta] versions 0.1.1 through 0.1.8 are vulnerable.
In VSCode (and forks), exploitation would allow an attacker to read arbitrary files, see the list of files open in the IDE, get selection and diagnostics events from the IDE, or execute code in limited situations where a user has an open Jupyter Notebook and accepts a malicious prompt. In JetBrains IDEs, an attacker could get selection events, a list of open files, and a list of syntax errors.
Remediation
We released a patch for this issue on June 13th, 2025. Although Claude Code auto-updates when you launch it and auto-updates the extensions, you should take the following steps (the exact steps depend on your IDE).
VSCode, Cursor, Windsurf, VSCodium, and other VSCode forks Extension Name: Claude Code for VSCode
Instructions:
- Open the list of Extensions (View->Extensions)
- Look for Claude Code for VSCode among installed extensions
- If you have a version < 1.0.24, click “Update” (or “Uninstall”)
- Restart the IDE
All JetBrains IDEs including IntelliJ, PyCharm, and Android Studio Plugin name: Claude Code [Beta]
Instructions:
- Open the Plugins list
- Look for Claude Code [Beta] among installed extensions
- Update (or Uninstall) the plugin if the version is < 0.1.9
- Restart the IDE
Questions
- Which versions fix CVE-2025-52882?
Claude Code for VS Code 1.0.24, and Claude Code [Beta] for JetBrains 0.1.9. The patch was released June 13, 2025.
- Do I have to click anything?
You need to visit an attacker-controlled web page while the IDE extension is running. The CVSS vector marks passive user interaction and no privileges.
- Can an attacker run code on my machine?
In limited cases in VS Code and forks: you need an open Jupyter Notebook and must accept a malicious prompt. Otherwise the main risk is reading files and IDE state.
- Are JetBrains users affected the same way?
Less severely. The attacker could get selection events, the open files list and syntax errors, according to the advisory.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Claude Code vulnerabilities
All Claude Code entriesCVE-2026-88968
Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
high7.7Nov 9, 2026CVE-2026-86063
Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning
high7.5Oct 15, 2026CVE-2026-55607
Claude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution
high7.7Jul 24, 2026CVE-2026-46406
@anthropic-ai/claude-code has an Insecure Temporary File in /copy Command that Enables Response Disclosure and Symlink-Based File Write
medium4.4Jun 25, 2026CVE-2026-54316
Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch
medium9.1Jun 17, 2026CVE-2026-40068
Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
high7.7Apr 24, 2026
