# CVE-2025-59829: Anthropic Claude Code permission bypass via symlink

Source: https://junglewise.ai/threats/cve-2025-59829-anthropic-claude-code-permission-bypass-via-symlink  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-03. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-59829 · Severity: medium · CVSS 4 · Published 2025-10-03

Claude Code is an AI-powered code editor extension that respects user-configured file access restrictions. A vulnerability allowed Claude Code to bypass explicit file access denials by following symlinks to restricted files. An attacker could exploit this to access sensitive files that a user had explicitly blocked, potentially exposing confidential code or project data.

Technologies: [Anthropic Claude Code](https://junglewise.ai/threats/technologies/claude-code), [@anthropic-ai/claude-code (npm)](https://junglewise.ai/threats/technologies/anthropic-ai-claude-code). Vendors: [Anthropic](https://junglewise.ai/threats/vendors/anthropic), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-59829 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-59829 being exploited in the wild.

**How severe is CVE-2025-59829?** Medium severity, with a CVSS score of 4, published 3 October 2025.

**Which products and versions are affected?** Anthropic Claude Code < 1.0.120; @anthropic-ai/claude-code (npm) SEMVER:introduced=0,fixed=1.0.120.

**Is there a fix for CVE-2025-59829?** Yes. @anthropic-ai/claude-code (npm): upgrade to 1.0.120 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-59829 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-59829?** Check whether you run Anthropic Claude Code or @anthropic-ai/claude-code (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @anthropic-ai/claude-code (npm): upgrade to 1.0.120 or later

  ```sh
  npm install @anthropic-ai/claude-code@1.0.120
  ```


## Technical details

Claude Code failed to canonicalize file paths when evaluating permission deny rules, specifically not accounting for symbolic links (symlinks). If a user denied Claude Code access to a file via explicit permission rules, an attacker could create or leverage a symlink pointing to that file and access it through the symlink, bypassing the deny check. This is a path traversal / access control bypass vulnerability (CWE-61: Improper Link Resolution Before File Access). The attack requires network access (to the Claude Code service) and user interaction (to trigger file access), but requires no authentication or special privileges. The vulnerability was patched in version 1.0.120; earlier versions are affected.

## Affected products

- Anthropic Claude Code < 1.0.120

## Identifiers

- CVE-2025-59829
- GHSA-66m2-gx93-v996

## Timeline

- 2025-10-03: disclosed: Advisory published
- 2025-10-03: patched: Fix available in version 1.0.120

## References

- [https://github.com/anthropics/claude-code/security/advisories/GHSA-66m2-gx93-v996](https://github.com/anthropics/claude-code/security/advisories/GHSA-66m2-gx93-v996)

## Related threats

- [Anthropic Claude Code time-of-check-to-time-of-use in Edit tool](https://junglewise.ai/threats/cve-2026-88968-claude-code-is-an-agentic-coding-tool-prior-to-2-1-251-the-edit)
- [Anthropic Claude Code plugin hash pin bypass in git checkout](https://junglewise.ai/threats/cve-2026-86063-claude-code-plugin-hash-pin-bypass-allows-bypass-of-hash-pinning)
- [Anthropic Claude Code managed settings bypass with stored API key](https://junglewise.ai/threats/cve-2026-103012-claude-code-selected-an-api-key-stored-by-claude-code-for)
- [Anthropic Claude Code sandbox escape via git worktree path confusion](https://junglewise.ai/threats/cve-2026-55607-anthropic-claude-code-sandbox-escape-via-git-worktree-path)
- [Anthropic Claude Code insecure temporary file in copy command](https://junglewise.ai/threats/cve-2026-46406-anthropic-claude-code-insecure-temporary-file-in-copy-command)
