{
 "public_id": "AIR-2025-0046",
 "incident_id": "2025-06-claude-code-ide-websocket",
 "date_disclosed": "2025-06-23",
 "date_occurred": null,
 "title": "Claude Code IDE extensions accepted WebSocket connections from any web origin",
 "class": "responsible_disclosure",
 "attack_surface": "coding_agent",
 "initial_vector": "malicious_website_local_websocket",
 "agent_capability_abused": [
  "ide_file_read",
  "ide_state_access",
  "notebook_execution"
 ],
 "target_product": "Claude Code for VS Code and JetBrains extensions",
 "target_vendor": "Anthropic",
 "autonomy_level": "assistant",
 "impact_realized": false,
 "impact_type": [
  "data_exfiltration",
  "source_code_disclosure",
  "limited_code_execution"
 ],
 "blast_radius": "Claude Code VS Code extension 0.2.116-1.0.23 (including in Cursor, Windsurf and VSCodium forks); JetBrains plugin 0.1.1-0.1.8",
 "cve": [
  "CVE-2025-52882"
 ],
 "taxonomy": {
  "owasp_asi": [
   "ASI04",
   "ASI05"
  ],
  "mitre_atlas": [],
  "labels": [
   "missing_origin_validation",
   "cwe_1385",
   "localhost_service_exposure",
   "drive_by"
  ]
 },
 "defense_present": "none - the local WebSocket server was unauthenticated and did not validate connection origin",
 "defense_bypassed": true,
 "fix_shipped": "Claude Code for VS Code 1.0.24, patched 2025-06-13 and advised 2025-06-23",
 "primary_sources": [
  "https://securitylabs.datadoghq.com/articles/claude-mcp-cve-2025-52882/"
 ],
 "verified_quote": "Malicious websites to connect to unauthenticated local WebSocket servers, potentially enabling remote command execution.",
 "confidence": "high",
 "notes": "CVSS 8.8. Any page the developer visited could connect to the extension's loopback WebSocket (WebSockets are not constrained by same-origin policy) and read arbitrary files, open-file lists, selections and diagnostics. Code execution was possible only in the narrow case of an open Jupyter notebook with an accepted prompt.",
 "risk_category": "privacy",
 "risk_secondary": [],
 "risk_subcategory": "Data Exfiltration via Context",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "ai_as_target",
 "agency_debatable": true,
 "agency_reason": "the IDE extension accepted WebSocket connections from any origin",
 "vector_family": "malicious_component",
 "vector_detail": "malicious_website_local_websocket",
 "guardrail_kind": [
  "none"
 ],
 "guardrail_outcome": "not_applicable",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [
   "CVE-2025-52882"
  ],
  "ghsa": []
 },
 "primary_asi": "ASI04",
 "agent_framework": "claude_code",
 "model_provider": "anthropic",
 "model_name": "",
 "detection_mechanism": "unknown",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "data_exfiltration_channels",
 "eai_domain": "privacy",
 "eai_secondary": [
  "privilege_escalation"
 ],
 "eai_reason": "subcategory: Data Exfiltration via Context",
 "asi_curated": [],
 "asi_scope": "in_scope",
 "asi_provenance": "rule",
 "asi_reason": "ASI04 (vector_family=malicious_component); ASI05 (impact=code_exec)",
 "submitted_by": "EAI Internal"
}