NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2023-7079: Arbitrary remote file read in Wrangler dev server

mediumCVSS 3.1 6.9GHSA-cfph-4qqh-w828

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].

Published Jan 3, 2024

Affected packages

wrangler

Ecosystem
npm
Affected
>= 3.9.0, < 3.19.0
Fixed in
3.19.0
Check
npm ls wrangler

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

  • https://github.com/cloudflare/workers-sdk/pull/4532
  • https://github.com/cloudflare/workers-sdk/pull/4535

Credited to Lekensteyn.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries