wrangler
Affected
- introduced
3.9.0, fixed3.19.0(semver)
Fixed versions
3.19.0
Fix
- Fixed version
3.19.0npm install [email protected]
Advisory
Also known as: CVE-2023-7079
Arbitrary remote file read in Wrangler dev server
Impact
Sending specially crafted HTTP requests and inspector messages to Wrangler's dev server could result in any file on the user's computer being accessible over the local network. An attacker that could trick any user on the local network into opening a malicious website could also read any file.
Patches
This issue was fixed in [email protected]. Wrangler will now only serve files that are part of your bundle, or referenced by your bundle's source maps.
Workarounds
Configure Wrangler to listen on local interfaces instead with wrangler dev --ip 127.0.0.1. This is the default as of `[email protected]`, and removes the local network as an attack vector, but does not prevent an attack from visiting a malicious website.
References
Medium Basis: The source's own band: MODERATE
3.9.0, fixed 3.19.0 (semver)3.19.0
3.19.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0