Arbitrary File Read Affecting wrangler package, versions >=3.9.0 <3.18.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WRANGLER-6140498
  • published31 Dec 2023
  • disclosed29 Dec 2023
  • creditLekensteyn

Introduced: 29 Dec 2023

CVE-2023-7079  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade wrangler to version 3.18.0 or higher.

Overview

wrangler is a Command-line interface for all things Cloudflare Workers

Affected versions of this package are vulnerable to Arbitrary File Read by specially crafted HTTP requests and inspector messages to the dev server. An attacker can access any file on the user's computer over the local network by convincing a user to open a malicious website.

Workaround

This vulnerability can be mitigated by configuring Wrangler to listen on local interfaces instead with wrangler dev --ip 127.0.0.1. This does not prevent the visiting of a malicious website.

CVSS Scores

version 3.1