VDB
Sign up
LOW

GHSA-4q92-rfm6-2cqx

Claude Code has Permission Deny Bypass Through Symbolic Links

Quick fix

GHSA-4q92-rfm6-2cqx — @anthropic-ai/claude-code: upgrade to the fixed version with the command below.

npm install @anthropic-ai/claude-code@2.1.7

Details

Claude Code failed to strictly enforce deny rules configured in settings.json when accessing files through symbolic links. If a user explicitly denied Claude Code access to a file (such as /etc/passwd) and Claude Code had access to a symbolic link pointing to that file, it was possible for Claude Code to read the restricted file through the symlink without triggering deny rule enforcement.

Users on standard Claude Code auto-update received this fix automatically. Users performing manual updates are advised to update to the latest version.

Claude Code thanks https://hackerone.com/ofirh for reporting this issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@anthropic-ai/claude-code
Introduced in: 0Fixed in: 2.1.7
Fixnpm install @anthropic-ai/claude-code@2.1.7

References