title: Directory traversal vulnerability in Cloudflare Wrangler
description: The Wrangler command line tool  (<=wrangler@3.1.0 or <=wrangler@2.20.1) was affected by a directory traversal vulnerability when running a local development server for Pages (wrangler pages dev command). This vulnerability enabled an attacker in the same network as the victim to connect to the local development server and access the victim's files present outside of the directory for the development server.
problem types: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
affected:
{
defaultStatus: unaffected
product: Wrangler
vendor: Cloudflare
versions:
changes: [at: 3.1.1, status: unaffected], lessThan: 3.1.1, status: affected, version: 3, versionType: semver
changes: [at: 2.20.1, status: unaffected], lessThan: 2.20.1, status: affected, version: 2, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: ADJACENT_NETWORK
availabilityImpact: NONE
baseScore: 5.7
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: NONE
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Upgrade to wrangler@3.1.1 or higher
For wrangler v2 upgrade to wrangler@2.20.1 or higher