A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-52882

CVE-2025-52882: Claude Code Information Disclosure Flaw

CVE-2025-52882 is an information disclosure vulnerability in Claude Code extensions for VSCode and JetBrains IDEs. Attackers can exploit unauthorized websocket connections to read files and access IDE data. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2025-52882 Overview

CVE-2025-52882 is a high-severity vulnerability affecting Claude Code IDE extensions across multiple development environments. The vulnerability allows unauthorized websocket connections from attackers when users visit malicious webpages, potentially leading to arbitrary file access, code execution, and information disclosure.

Claude Code extensions in VSCode and its forks (including Cursor, Windsurf, and VSCodium) as well as JetBrains IDEs (IntelliJ, PyCharm, Android Studio) are susceptible to this attack. The vulnerability stems from improper validation of websocket connection origins, classified under CWE-1385 (Missing Origin Validation in WebSockets).

Critical Impact

Attackers can read arbitrary files, monitor IDE activity, access file listings, and in certain scenarios execute code when users have Jupyter Notebooks open and accept malicious prompts.

Affected Products

  • Claude Code for VSCode IDE extensions versions 0.2.116 through 1.0.23
  • Claude Code [Beta] for JetBrains IDEs versions 0.1.1 through 0.1.8
  • VSCode forks including Cursor, Windsurf, and VSCodium running vulnerable extension versions

Discovery Timeline

  • June 13, 2025 - Anthropic releases security patch
  • June 24, 2025 - CVE-2025-52882 published to NVD
  • June 26, 2025 - Last updated in NVD database

Technical Details for CVE-2025-52882

Vulnerability Analysis

This vulnerability represents a missing origin validation flaw in the WebSocket implementation used by Claude Code IDE extensions. WebSocket connections, unlike standard HTTP requests, can bypass same-origin policy protections if proper origin validation is not implemented. In this case, the Claude Code extensions fail to adequately verify the origin of incoming WebSocket connections, allowing attacker-controlled web pages to establish unauthorized connections to the extension's local WebSocket server.

The impact varies by IDE platform. In VSCode and its forks, successful exploitation enables attackers to read arbitrary files from the victim's system, enumerate files open in the IDE, receive selection and diagnostics events, and potentially execute code when users have an open Jupyter Notebook and inadvertently accept a malicious prompt. JetBrains IDE users face exposure of selection events, open file listings, and syntax error information.

Root Cause

The root cause is classified as CWE-1385: Missing Origin Validation in WebSockets. The Claude Code extension establishes a local WebSocket server for communication between the IDE and the extension's functionality. However, the implementation did not properly validate the origin header of incoming WebSocket connection requests. This oversight allows malicious web pages loaded in the user's browser to initiate WebSocket connections to the extension's local server, bypassing the intended security boundary between web content and the local development environment.

Attack Vector

The attack requires user interaction through visiting an attacker-controlled webpage while the vulnerable Claude Code extension is active in their IDE. The attack is network-accessible, meaning attackers can host malicious content on any web server. When a victim visits the malicious page, JavaScript code on that page attempts to establish a WebSocket connection to the Claude Code extension's local server. Due to the missing origin validation, this connection succeeds, granting the attacker access to extension functionality.

The attack flow proceeds as follows: the attacker crafts a webpage containing malicious JavaScript that initiates WebSocket connections to common local ports used by Claude Code. When a developer with the vulnerable extension installed visits this page, the browser executes the JavaScript, which successfully connects to the extension's WebSocket endpoint. From there, the attacker can issue commands to read files, enumerate open documents, or—in VSCode with an open Jupyter Notebook—potentially achieve code execution if the user accepts a crafted prompt.

Detection Methods for CVE-2025-52882

Indicators of Compromise

  • Unexpected outbound WebSocket connections originating from IDE processes to unknown destinations
  • Browser console logs showing WebSocket connections to localhost ports associated with Claude Code
  • Unusual file access patterns from IDE processes accessing sensitive files outside the project scope
  • Suspicious prompts appearing in Jupyter Notebooks that were not user-initiated

Detection Strategies

  • Monitor for anomalous WebSocket connection attempts to local development tool ports from browser processes
  • Implement network monitoring to detect connections between browser contexts and IDE extension services
  • Review IDE extension logs for unexpected file access requests or command executions
  • Deploy endpoint detection solutions that can correlate browser activity with local service connections

Monitoring Recommendations

  • Enable verbose logging for IDE extensions to capture WebSocket connection attempts and their origins
  • Configure security tools to alert on cross-process communication between browsers and development tools
  • Monitor for file system access from IDE processes to directories outside normal project boundaries
  • Track extension version information and alert when outdated vulnerable versions are detected

How to Mitigate CVE-2025-52882

Immediate Actions Required

  • Update Claude Code for VSCode to version 1.0.24 or later immediately
  • Update Claude Code [Beta] for JetBrains IDEs to version 0.1.9 or later
  • Restart all affected IDEs after updating extensions to ensure the patched version is active
  • Audit recent file access logs for any signs of unauthorized access during the vulnerable period

Patch Information

Anthropic released patches for this vulnerability on June 13, 2025. Claude Code includes auto-update functionality that activates when users launch the application, and extensions are also auto-updated. However, manual verification is strongly recommended.

For VSCode, Cursor, Windsurf, VSCodium, and other VSCode forks: Navigate to View → Extensions, locate "Claude Code for VSCode" among installed extensions, and verify the version is 1.0.24 or higher. Update or uninstall any prior versions, then restart the IDE.

For JetBrains IDEs (IntelliJ, PyCharm, Android Studio): Open the Plugins list, locate "Claude Code [Beta]" among installed extensions, and verify the version is 0.1.9 or higher. Update or uninstall any prior versions, then restart the IDE.

For additional details, refer to the GitHub Security Advisory GHSA-9f65-56v6-gxw7.

Workarounds

  • Temporarily disable the Claude Code extension until the update can be applied
  • Avoid visiting untrusted websites while the vulnerable extension is active in your IDE
  • Close Jupyter Notebooks when not actively in use to reduce the code execution attack surface
  • Consider using browser isolation or separate browser profiles when browsing while developing
bash
# VSCode CLI extension update
code --uninstall-extension anthropic.claude-code
code --install-extension anthropic.claude-code@1.0.24

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechClaude Code

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-1385
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-21852: Claude Code Information Disclosure Flaw

  • CVE-2026-25722: Anthropic Claude Code Path Traversal Flaw

  • CVE-2026-24052: Claude Code SSRF Vulnerability

  • CVE-2026-24887: Claude Code RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use