Privilege Escalation in wrangler (CVE-2023-7080)
Summary
Vulnerability in wrangler (CVE-2023-7080). Confidential information can be exposed externally. Exploitable via Origin. Mitigation: upgrade to 2.20.2 or later.
Original description
The description as published by the source.
Impact
The V8 inspector intentionally allows arbitrary code execution within the Workers sandbox for debugging. wrangler dev would previously start an inspector server listening on all network interfaces. This would allow an attacker on the local network to connect to the inspector and run arbitrary code. Additionally, the inspector server did not validate Origin/Host headers, granting an attacker that can trick any user on the local network into opening a malicious website the ability to run code. If wrangler dev --remote was being used, an attacker could access production resources if they were bound to the worker.
Patches
This issue was fixed in wrangler@3.19.0 and wrangler@2.20.2. Whilst wrangler dev's inspector server listens on local interfaces by default as of wrangler@3.16.0, an SSRF vulnerability in miniflare allowed access from the local network until wrangler@3.18.0. wrangler@3.19.0 and wrangler@2.20.2 introduced validation for the Origin/Host headers.
Workarounds
Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. Please upgrade to at least wrangler@3.16.0, and configure Wrangler to listen on local interfaces instead with wrangler dev --ip 127.0.0.1 to prevent SSRF. This removes the local network as an attack vector, but does not prevent an attack from visiting a malicious we…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2023-7080 has been found in wrangler.
Attackers can target a specific entry point like Origin over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade wrangler to 2.20.2 or later.
If unsure, ask your IT team or search "wrangler CVE-2023-7080" on the vendor's site.
CVE-2023-7080 (wrangler) — CWE-269
Attack vector: adjacent-network / unauthenticated / no user interaction
Attack surface: Origin / Host / miniflare
Patched: 2.20.2 — apply immediately
Workaround: Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-269) exists in wrangler. Attackers reach the vulnerable code path via Origin without authentication.
Check the vendor advisory for the affected versions of wrangler. Attack surface: Origin / Host / miniflare.
Severity: ?. Confidential information can be exposed externally.
Update to 2.20.2.
Workaround: Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'wrangler' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'wrangler' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
wranglerを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on.パッチが適用されるまでの応急処置として、Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade wrangler to 2.20.2ステージング環境で 2.20.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com