@anthropic-ai/claude-code@2.1.245

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.

  • latest version

    2.1.303

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    17 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @anthropic-ai/claude-code package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • L
    Incorrect Behavior Order

    @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 Incorrect Behavior Order via incorrect API key selection during server-managed settings retrieval. When a session authenticates with a Claude Enterprise or Team account, the settings fetch logic incorrectly prioritizes a locally stored API key (from a prior /login or direct configuration write) over the authenticated session credentials. When the settings endpoint rejects that stored key, the session starts without the organization's server-managed policy - including permission deny rules, model restrictions, and managed-only locks - or, if a previously cached copy exists on the machine, continues applying that stale copy without receiving later policy changes, while still operating as the organization's account. Endpoint-managed (MDM or file-based) settings are not affected.

    Note: This is only exploitable with local access to a device that has a stored API key; the no-policy case additionally requires that no managed settings have previously been cached on that device.

    How to fix Incorrect Behavior Order?

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

    >=2.0.68 <2.1.260