Wrangler · Wrangler · CVE-2023-7080
**Name of the Vulnerable Software and Affected Versions**
wrangler versions prior to 3.19.0
wrangler versions prior to 2.20.2
**Description**
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, allowing 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.
**Recommendations**
For versions prior to 3.19.0, upgrade to at least `wrangler@3.19.0` to introduce validation for the `Origin`/`Host` headers.
For versions prior to 2.20.2, upgrade to at least `wrangler@2.20.2` to introduce validation for the `Origin`/`Host` headers.
As a temporary workaround, consider configuring Wrangler to listen on local interfaces instead with `wrangler dev --ip 127.0.0.1` to prevent SSRF.