CVE-2020-5284:
Directory Traversal in Next.js
4.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98915%
CWE
Published
3/30/2020
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
next | npm | < 9.3.2 | 9.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
While exact code changes aren't visible, the vulnerability description explicitly mentions improper access control to .next/static
paths. The release notes confirm the patch added path validation to static asset serving. In Next.js
architecture, serveStatic
is the primary function responsible for handling /_next/static
requests. The medium confidence comes from matching the vulnerability pattern to the function's responsibility, despite lacking direct access to patch diffs.