CVE-2025-52882
Claude Code IDE extensions allow websocket connections from arbitrary origins
Also known as GHSA-9f65-56v6-gxw7
Mitigation
- Upgrade @anthropic-ai/claude-code to 1.0.24 or later.
Who should check
- Projects that depend on npm package @anthropic-ai/claude-code (>= 0.2.116, < 1.0.24)
- Anyone running anthropics claude-code >= 0.2.116 < 1.0.24
Vulnerability facts
- Affected
- @anthropic-ai/claude-code >= 0.2.116, < 1.0.24
- Fixed in
- 1.0.24
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: None
- EPSS
- 0.48% chance of exploitation in 30 days (percentile 34, 2026-11-26)
- CWE
- CWE-1385
- Modified
Description
Claude Code is an agentic coding tool. 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. Claude released a patch for this issue on June 13th, 2025. Although Claude Code auto-updates when a user launch it and auto-updates the extensions, users should take the following steps, though the exact steps depend on one's integrated development environment (IDE). For VSCode, Cursor, Windsurf, VSCodium, and other VSCode forks, check the extension Claude Code for VSCode. Open the list of Extensions (View->Extensions), look for Claude Code for VSCode among installed extensions, update or uninstall any version prior to 1.0.24, and restart the IDE. For JetBrains IDEs including IntelliJ, PyCharm, and Android Studio, check the plugin Claude Code [Beta]. Open the Plugins list, look for Claude Code [Beta] among installed extensions, update or uninstall any version prior to 0.1.9, and restart the IDE.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @anthropic-ai/claude-code | >= 0.2.116, < 1.0.24 | 1.0.24 | osv |
| anthropics claude-code | >= 0.2.116 < 1.0.24 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-52882. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-52882.md Affected: @anthropic-ai/claude-code >= 0.2.116, < 1.0.24 Fixed in: 1.0.24 Steps: 1. Search this machine and project for @anthropic-ai/claude-code (npm), anthropics claude-code: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-52882 being exploited?
There is no confirmed exploitation: CVE-2025-52882 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-52882?
High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-52882?
@anthropic-ai/claude-code >= 0.2.116, < 1.0.24.
Is there a fix for CVE-2025-52882?
Yes. Fixed in 1.0.24. Upgrade @anthropic-ai/claude-code to 1.0.24 or later.
How do I check if I'm affected by CVE-2025-52882?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.