# CVE-2026-0933: OS Command Injection in \`wrangler pages deploy\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.47% (percentile 85, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-36p8-mvp6-cv38
- **Published:** 2026-01-20T22:58:05.212Z
- **Modified:** 2026-06-17T10:11:39.087Z

## Who should check

- Projects that depend on npm package wrangler (\>= 2.0.15, \< 3.114.17)
- Anyone running Cloudflare Wrangler \>= v3.0.0, \<= v3.114.16; \>= v4.0.0, \<= v4.59.0; v2.0.15+

## Description

SummaryA command injection vulnerability (CWE-78) has been found to exist in the \`wrangler pages deploy\` command. The issue occurs because the \`--commit-hash\` parameter is passed directly to a shell command without proper validation or sanitization, allowing an attacker with control of \`--commit-hash\` to execute arbitrary commands on the system running Wrangler.




Root causeThe commitHash variable, derived from user input via the --commit-hash CLI argument, is interpolated directly into a shell command using template literals (e.g.,  execSync(\`git show -s --format=%B ${commitHash}\`)). Shell metacharacters are interpreted by the shell, enabling command execution.




ImpactThis vulnerability is generally hard to exploit, as it requires --commit-hash to be attacker controlled. The vulnerability primarily affects CI/CD environments where \`wrangler pages deploy\` is used in automated pipelines and the 

--commit-hash parameter is populated from external, potentially untrusted sources. An attacker could exploit this to:

  \*  Run any shell command.
  \*  Exfiltrate environment variables.
  \*  Compromise the CI runner to install backdoors or modify build artifacts.



Credits Disclosed responsibly by kny4hacker.




Mitigation
  \*  Wrangler v4 users are requested to upgrade to Wrangler v4.59.1 or higher.
  \*  Wrangler v3 users are requested to upgrade to Wrangler v3.114.17 or higher.
  \*  Users on Wrangler v2 (EOL) should upgrade to a supported major version.

## Affected and fixed versions

- npm `wrangler`: affected \>= 2.0.15, \< 3.114.17; fixed 3.114.17, 4.59.1 (osv)
- Cloudflare Wrangler: \>= v3.0.0, \<= v3.114.16; \>= v4.0.0, \<= v4.59.0; v2.0.15+ (cvelist)

## Mitigation

- Upgrade wrangler to one of 3.114.17, 4.59.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-0933. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-0933.md
Affected: wrangler >= 2.0.15, < 3.114.17
Fixed in: 3.114.17, 4.59.1

Steps:
1. Search this machine and project for wrangler (npm), Cloudflare Wrangler: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-0933 being exploited?

There is no confirmed exploitation: CVE-2026-0933 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.47% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-0933?

High: CVSS 7.7 (v4.0, scored by CNA). Remote, login needed.

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

wrangler \>= 2.0.15, \< 3.114.17.

### Is there a fix for CVE-2026-0933?

Yes. Fixed in 3.114.17, 4.59.1. Upgrade wrangler to one of 3.114.17, 4.59.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-0933?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-36p8-mvp6-cv38>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-0933>
- patch: <https://github.com/cloudflare/workers-sdk/commit/99b1f328a9afe181b49f1114ed47f15f6d25f0be>
- other: <https://github.com/cloudflare/workers-sdk>
- other: <https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%403.114.17>
- other: <https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.59.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-0933>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-36p8-mvp6-cv38> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-0933> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-0933>
