Improper Authorization Affecting @anthropic-ai/claude-code package, versions >=0.2.116 <1.0.24


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ANTHROPICAICLAUDECODE-10499816
  • published25 Jun 2025
  • disclosed23 Jun 2025
  • creditUnknown

Introduced: 23 Jun 2025

NewCVE-2025-52882  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 1.0.24 or higher.

Overview

@anthropic-ai/claude-code is an Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.

Affected versions of this package are vulnerable to Improper Authorization via unauthorized websocket connections from arbitrary origins. An attacker can access arbitrary files, view the list of files open in the IDE, retrieve selection and diagnostics events, or execute code in limited scenarios by enticing a user to visit a malicious webpage.

References

CVSS Base Scores

version 4.0
version 3.1