Loading...
Skip to main content

CVE-2026-0933 — Vulnerability in wrangler — CVE Details

HIGH

Wrangler affected by OS Command Injection in `wrangler pages deploy`

Published January 21, 2026Updated February 3, 2026Source: osv

Summary

**Summary** A 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 cause** The `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. **Impact** This 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. **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. **Credits** Disclosed responsibly by kny4hacker.

Advisory Timeline

  • First published January 21, 2026 (264 days ago).
  • Last revised February 3, 2026 — 12 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update wrangler to 3.114.17 or later
npm install wrangler@3.114.17
npm
Update wrangler to 4.59.1 or later
npm install wrangler@4.59.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
wrangler
npm
All versions3.114.17
wrangler
npm
All versions4.59.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-0933?
Wrangler affected by OS Command Injection in `wrangler pages deploy` This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.5/10).
How do I check if my project is affected by CVE-2026-0933?
CVE-2026-0933 affects wrangler. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-0933 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.5

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-36p8-mvp6-cv38

Related CVEs

  • CVE-2026-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies