Claude Code IDE extensions allow websocket connections from arbitrary origins
High8.8CVE-2025-52882 · Published Jun 23, 2025 · updated Jun 24, 2025
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: 1. Open the ...
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Claude Code [Beta] Product | >= 0.1.1, < 0.1.9[Beta]andabove | 0.1.9[Beta]andabove |
| Claude Code for VSCode Product | >= 0.2.116, < 1.0.24andabove | 1.0.24andabove |
| @anthropic-ai/claude-code npm | >= 0.2.116, < 1.0.24andabove | 1.0.24andabove |
Details and references
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: 1. Open the list of Extensions (View->Extensions) 2. Look for Claude Code for VSCode among installed extensions 3. If you have a version < 1.0.24, click “Update” (or “Uninstall”) 4. Restart the IDE **All JetBrains IDEs including IntelliJ, PyCharm, and Android Studio** Plugin name: Claude Code [Beta] Instructions: 1. Open the Plugins list 2. Look for Claude Code [Beta] among installed extensions 3. Update (or Uninstall) the plugin if the version is < 0.1.9 4. Restart the IDE
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
- Severity from
- GitHub (reviewed advisory)
More Anthropic advisories
All Anthropic| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 92025 | Command Injection in Claude Code rg command allowed bypass of user approval prompt for command execution | High8.7 | 1.0.105 |
| Sep 92025 | Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email | High8.7 | 1.0.105 |
| Sep 22025 | Claude Code Vulnerable to Arbitrary Code Execution Due to Insufficient Startup Warning | High8.7 | v1.0.87 |
| Aug 152025 | Permissive Default Allowlist Enables Unauthorized File Read and Network Exfiltration in Claude Code | High7.1 | v1.0.4 |
| Aug 12025 | Anthropic: path traversal | High7.7 | v0.2.111 |
| Aug 12025 | Command Injection in Claude Code echo command allowed bypass of user approval prompt for command execution | High8.7 | v1.0.20 |