# CVE-2026-73222: Claude Code Templates: Unauthenticated OS command injection (RCE) in Claude Code Studio server (--studio)

> Unauthenticated OS command injection in Claude Code Studio server allows arbitrary code execution via crafted API requests, compromising developer systems.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 11 Aug 2026
- **Updated:** 13 Aug 2026
- **Also known as:** GHSA-79wm-x847-7cvg

## What is CVE-2026-73222?

CVE-2026-73222 is a high-severity command injection vulnerability in davila7 claude-code-templates, published on 11 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Claude Code Templates is a CLI tool for configuring and monitoring Claude Code. Prior to 1.29.4, the Claude Code Studio server launched by the --studio option in cli-tool/src/sandbox-server.js binds to all interfaces on port 3444, permits cross-origin requests, and requires no authentication. The POST /api/execute endpoint passes the prompt request-body field to executeLocalTask(), and POST /api/install-agent passes the agentName request-body field to a child process. The same unsafe agent field path is reachable from /api/execute through checkAndInstallAgent(). These attacker-controlled values reach child_process.spawn() with shell execution enabled, causing Node.js to construct a shell command in which metacharacters are interpreted. An attacker who can reach the port directly, or who convinces a developer running Studio to visit a malicious website, can execute arbitrary operating-system commands with the developer's privileges and compromise source code, credentials, and local data. This issue is fixed in version 1.29.4.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command), CWE-352 (Cross-Site Request Forgery), CWE-306 (Missing Authentication for Critical Functionality)

## Which versions are affected by CVE-2026-73222?

2 open source packages ship an affected version, including claude-code-templates.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `claude-code-templates` | npm | All versions | 1.29.4 |
| `claude-code-templates` | npm | All versions | 1.29.4 |

## How do I fix CVE-2026-73222?

Upgrade claude-code-templates to 1.29.4 or later.

## Is CVE-2026-73222 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73222 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-73222 and fix it if it is affected.

What it is: CVE-2026-73222 is a high-severity command injection vulnerability in davila7 claude-code-templates, published on 11 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73222 exists.

Affected packages and fixed versions:
- claude-code-templates (npm): affected all versions; fixed in 1.29.4
- claude-code-templates (npm): affected all versions; fixed in 1.29.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-73222/ (Markdown: https://insights.sbomify.com/CVE-2026-73222/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-73222
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-73222
- OSV: https://osv.dev/vulnerability/CVE-2026-73222

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-73222/
Summaries are generated and may contain mistakes; the official description above is the record.
