Claude Code vulnerabilities are security flaws in Anthropic's coding agent, published as GitHub Security Advisories with affected semver ranges and patched releases. To know if you are exposed, compare your installed version to each advisory—not a news headline—and patch before you aim the harness at untrusted repositories, marketplaces, or dependency install scripts.
TL;DR
| Question | Answer |
|---|---|
| Am I affected? | If your semver is below the advisory's fixed version for that flaw |
| Is there a fix? | Upgrade to the patched release named in the GHSA; auto-update often delivers it |
| Does data leave my machine? | Exploits may exfiltrate via WebFetch or MCP; patching closes the harness gap |
| Where is the source of truth? | anthropics/claude-code security advisories and linked CVE records |
| What besides patch? | Restrict repos, verify plugin pins, monitor PreToolUse, use OS sandboxes for untrusted code |
Beam maintains a rolling index at Claude Code vulnerabilities synced from GitHub-reviewed advisories. Individual entries such as include npm ranges and CVSS when assigned.
This post is evergreen mechanics—how to check and patch—not a duplicate of the CVE database page. For deep dives on specific flaws, see Claude Code Edit tool TOCTOU and stopping dangerous commands.
What Claude Code vulnerabilities look like in practice
Anthropic's 2026 advisories cluster into families developers should recognize:
Workspace and sandbox boundary flaws. TOCTOU races and symlink following let writes or execution land outside the intended project directory when validation is not bound to inodes (for example GHSA-5xjx-9qx6-jcrv, fixed in 2.1.251). Exploitation often requires attacker-controlled code already running inside bash—typical of malicious repos or install scripts.
Plugin and marketplace integrity. GHSA-pq7j-f95f-qfcv (CVE-2026-86063) showed git checkout resolving a SHA-shaped branch instead of the pinned commit. Hash pinning only protects when the client verifies HEAD matches the pin.
Desktop and host integration. Issues such as uncontrolled search path for git.exe on Windows or preview-pane HTML execution treat the host OS as part of the trust boundary—not just the model.
SDK argument injection. Python Agent SDK flaws (for example resume-session flag injection) matter when your app passes untrusted session ids into SDK wrappers—adjacent to the CLI but part of the same ecosystem on claude-code CVE tool page.
Secondary write-ups (consulting blogs, CVE aggregators) help discovery but can lag version numbers. Always open the maintainer advisory before changing production pins.
Recent Claude Code advisory families (check against your semver)
The table below is a snapshot pattern—not a live feed. Open GitHub advisories before acting; semver fixes change as new issues ship.
| Family | Example issue | Typical fix posture | Who is most exposed |
|---|---|---|---|
| Edit/Bash TOCTOU | CVE-2026-88968 | Bump CLI to patched semver; avoid untrusted repo scripts in sandbox | Developers on macOS with broad bash approval |
| Symlink write escape (GHSA-5j29-h97v-84ch) | CVE-2026-103435 | Bump to 2.1.129+; shared-workspace hygiene | Teams on multi-user checkout dirs |
| Plugin hash pin | CVE-2026-86063 | Patch + verify git rev-parse HEAD after install | Marketplace power users |
| Host binary path | Windows git.exe | Patch Desktop/CLI bundle; remove untrusted git.exe in repo roots | Windows users opening unknown folders |
| Desktop preview (SneakPeek) | Preview-pane exfiltration; fixed 1.30096.1+ | Update desktop; do not preview untrusted HTML | Desktop users rendering repo HTML in the preview pane |
Claude Code flaws in third-party roundups can summarize October 2026 clusters, but Invadel’s table is not authoritative for version numbers—use GHSA rows when writing policy language.
Claude Code vulnerability management for a team means tying semver policy to MDM or dotfile repos: one field for minimum CLI, one for desktop app build, one for allowed marketplaces. Security teams searching claude code vulnerability scanner usually want either dependency scanners (npm) or agent skills that hunt bugs in their product—not a magic CLI self-scan. Anthropic does not ship a “scan yourself” button; your process is advisory watch plus semver compliance.
How to check Claude Code for known vulnerabilities
Step 1 — Record versions.
claude --version
npm ls -g @anthropic-ai/claude-code
For project-local installs, run npm ls @anthropic-ai/claude-code inside the repo that vendors the SDK.
Step 2 — List open advisories.
Open Security Advisories · anthropics/claude-code and filter by severity relevant to your threat model. Click each entry for:
- Affected package (
@anthropic-ai/claude-codesemver range) - Patched version
- Whether exploitation requires user interaction or untrusted content
- CWE tags (symlink, TOCTOU, path traversal)
Step 3 — Map to Beam CVE pages when present.
If apps/web/content/cves/<id>.json exists, use /cve/<slug> for a stable summary linking back to GitHub—example . The Claude Code tool page lists the corpus without replacing advisories.
Step 4 — Check related surfaces.
Claude Desktop, Cowork, and browser extensions carry their own semver advisories on the same repo list. A patched CLI does not imply a patched desktop build.
Step 5 — Note auto-update posture.
Many advisories state that standard auto-update shipped the fix. Manual pin users must bump explicitly—document that in team runbooks (enterprise rollout checklist).
Step 6 — Cross-check desktop and SDK surfaces.
Engineers often patch the global CLI while desktop remains behind. Read each advisory’s Affected packages block: @anthropic-ai/claude-code, standalone claude-code, Claude Desktop builds, and Python Agent SDK versions are not interchangeable. If your monorepo vendors claude-agent-sdk, run pip show claude-agent-sdk or read pyproject.toml pins alongside npm. A patched CLI plus stale SDK still leaves automation paths exposed when CI calls the SDK with user-supplied session identifiers—see advisory text for argument-injection classes before assuming “we updated Claude” covers every entry point.
How to patch and harden after a Claude Code vulnerability
Upgrade path. Install the patched semver from the advisory:
npm install -g @anthropic-ai/claude-code@<patched-version>
When the advisory says “latest,” still read the release notes on Claude Code releases so CI mirrors a specific number.
Plugin hygiene. After hash-pin bypass fixes, re-install plugins from reviewed marketplaces, verify commit SHA matches git rev-parse HEAD, and avoid SHA-shaped branch names on hosts that permit them.
Untrusted repos. Treat clone-and-agent workflows as running semi-trusted code. Use OS-level sandboxes, devcontainers, or read-only workspaces when auditing unfamiliar trees—patching closes a class of TOCTOU issues but not social engineering in AGENTS.md.
Monitor proposals. PreToolUse hooks record what the agent attempted; they do not prove a vulnerable write succeeded. Pair patching with agent runtime security on machines that handle secrets.
Supply chain adjacent. Fake installers typosquatting “get claude code” are not CVEs but hit the same audience—see fake Claude Code installers.
Claude Code vulnerability detection skills and scanners
Security researchers ship skills that hunt bugs in target repos; those are not substitutes for patching the harness. Cloudflare's security-audit skill runs multi-phase review with OS sandbox requirements. Vendor scanners (Dependabot, npm audit) cover dependencies, not Claude Code's own semver.
Before installing a “vulnerability scanner” skill:
- Read
SKILL.mdand runbeam scanon it. - Pin the version you reviewed.
- Never run audit skills on malware without an isolated environment.
Claude Code vulnerability detection in CI typically means two tracks: (a) semver gate on the harness binary in the image that runs agents, and (b) dependency scanning on the repository the agent edits. Track (a) is missing from most templates because Claude Code is installed globally on developer laptops, not declared in package.json. Fix that by recording semver in a machine-readable file your security team owns—dotfile repo, MDM inventory query, or weekly beam agent list export when devices are connected.
What this means if you run AI coding agents
Corporate policy: require claude --version in weekly workstation audit scripts; fail CI devcontainer builds below patched semver.
Individual developers: enable auto-update unless you have a reproducibility reason not to—then subscribe to the GitHub advisory feed.
Incident response: if an advisory mentions in-the-wild exploitation (rare for Claude Code today), rotate OAuth tokens the agent could read and review hook logs for suspicious Edit or Bash sequences.
No AI angle hand-waving: kernel and browser CVEs on the same laptop still matter; Claude Code sits above them. Patch the harness and the OS.
Team policy template for Claude Code vulnerabilities
Copy into internal docs and replace placeholders after reading each GHSA:
- Owner — name a single engineering contact for semver exceptions.
- Minimum versions —
CLAUDE_CODE_MIN,CLAUDE_DESKTOP_MIN, refreshed within 48 hours of a High advisory. - Notification — subscribe developers to
watch → custom → security alertsonanthropics/claude-code. - Untrusted repo rule — no full-trust agent runs on third-party trees without container isolation; document the exception process.
- Post-patch review — sample ten PreToolUse events after fleet upgrade to confirm hooks still fire under new builds.
Claude Code vulnerability analysis for incident response: when a TOCTOU issue is disclosed, search local logs (if collected) for Edit tool proposals immediately followed by bash activity in the same session—correlation is heuristic, not proof of exploitation, but it prioritizes host inspection.
Is Claude Code an AI agent? For vulnerability purposes, treat it as privileged local software with model-driven planning—the attack surface is the tool runtime, not the weights alone. That framing helps justify semver gates beside traditional app patching.
What Beam can and cannot do here
Beam syncs disclosed Claude Code issues into /cve/tool/claude-code, scans skills/MCP heuristically, and records PreToolUse events locally. It does not patch @anthropic-ai/claude-code, verify Anthropic signatures, or block TOCTOU at the kernel.
Use Beam to catch risky commands after you patch, and to scan third-party skills that might exploit unpatched versions—but semver compliance remains your package manager job.
Frequently asked questions
What are Claude Code vulnerabilities?
Disclosed flaws in Anthropic's coding agent packages with semver fixes on GitHub Security Advisories.
Is Claude Code vulnerable on my machine?
Only if your installed version falls inside an affected range for an unfixed issue. Compare semver to each advisory.
Do all issues have a CVE?
Many highs receive CVE ids; moderates may be GHSA-only until assigned. Use the advisory for version truth.
How do researchers disclose Claude Code flaws?
Through Anthropic's coordinated disclosure; credits appear on advisories (for example HackerOne reporters on TOCTOU issues).
How do I patch quickly?
Auto-update or explicit npm global bump to the patched version; rebuild desktop apps separately if applicable.
Where does Beam fit?
CVE index, heuristic skill scan, and local tool-call history—not binary patching.
Related reading
- CVE-2026-88968 Edit tool TOCTOU — mechanism deep dive
- Stop Claude Code dangerous commands — hook denies after patch
- Fake Claude Code installers — non-CVE distribution risk
- Check dependencies for known CVEs in CI — adjacent supply chain
- MCP security practical guide — server risks beside CLI flaws
- Claude Code vulnerability database — Beam CVE tool index
Advisory semver ranges and fixed versions are accurate as of 2026-11-23; confirm on the linked GHSA before enforcing in CI.

