The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-5284

CVE-2020-5284: Zeit Next.js Path Traversal Vulnerability

CVE-2020-5284 is a directory traversal vulnerability in Zeit Next.js that allows attackers to access files in the dist directory. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-5284 Overview

CVE-2020-5284 is a directory traversal vulnerability affecting Next.js versions prior to 9.3.2. Attackers can craft specially formatted HTTP requests to access files within the .next distribution directory, potentially exposing build assets and sensitive configuration data. While the vulnerability is limited to the .next directory and does not permit access to files outside this scope, applications that store sensitive assets in this directory may be at risk of information disclosure.

Critical Impact

Unauthorized access to build assets and potentially sensitive application data stored in the .next distribution directory through crafted path traversal requests.

Affected Products

  • Zeit Next.js versions prior to 9.3.2
  • Applications using vulnerable Next.js versions with sensitive data in the .next directory
  • Deployments where the .next directory contains custom assets or configuration files

Discovery Timeline

  • 2020-03-30 - CVE-2020-5284 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-5284

Vulnerability Analysis

This directory traversal vulnerability (CWE-22, CWE-23) exists in the request handling logic of Next.js. The framework fails to properly sanitize user-supplied path components in HTTP requests, allowing attackers to navigate outside the intended web root into the .next distribution directory. This directory typically contains compiled JavaScript bundles, server-side rendering artifacts, and cached build data.

The impact is primarily information disclosure. While the vulnerability's scope is limited to the .next directory, exposure of build artifacts could reveal application logic, API endpoints, environment-specific configurations, or other sensitive implementation details that could aid further attacks.

Root Cause

The vulnerability stems from insufficient input validation and path canonicalization in Next.js's static file serving mechanism. When processing requests for static assets, the application fails to properly validate and normalize path components, allowing sequences like ../ to traverse directories within the constraints of the .next folder.

Attack Vector

The attack is network-based and requires low privileges to execute. An attacker sends crafted HTTP requests containing directory traversal sequences targeting the .next distribution folder. The server processes these malicious paths without adequate sanitization, returning file contents from within the distribution directory.

The exploitation mechanism involves manipulating URL path components to escape the intended static file serving boundaries. Attackers typically inject encoded or literal ../ sequences to navigate the directory structure and access build artifacts that should not be publicly accessible.

Detection Methods for CVE-2020-5284

Indicators of Compromise

  • HTTP access logs showing requests with encoded or literal ../ sequences targeting .next paths
  • Unusual access patterns to build artifact files (e.g., .next/server/, .next/static/)
  • Requests containing URL-encoded traversal characters (%2e%2e%2f, %2e%2e/)
  • Web application firewall (WAF) alerts for path traversal attempt signatures

Detection Strategies

  • Implement WAF rules to detect and block common directory traversal patterns in request URLs
  • Configure intrusion detection systems (IDS) to alert on path manipulation attempts targeting Node.js applications
  • Enable verbose request logging and monitor for anomalous access to .next directory contents
  • Deploy runtime application self-protection (RASP) solutions to identify traversal attempts in real-time

Monitoring Recommendations

  • Monitor web server access logs for requests containing path traversal sequences
  • Set up alerts for unexpected file access within the .next distribution directory
  • Review application logs for error messages related to file path resolution
  • Implement file integrity monitoring on sensitive build artifacts

How to Mitigate CVE-2020-5284

Immediate Actions Required

  • Upgrade Next.js to version 9.3.2 or later immediately
  • Audit your .next directory for any sensitive files that may have been intentionally or unintentionally stored there
  • Review access logs for evidence of exploitation attempts
  • Implement WAF rules to block path traversal patterns as a defense-in-depth measure

Patch Information

The vulnerability has been addressed in Next.js version 9.3.2. Organizations should upgrade to this version or later to remediate the vulnerability. Detailed release information is available in the GitHub Next.js Release v9.3.2. Additional technical details about the vulnerability can be found in the GitHub Security Advisory GHSA-fq77-7p7r-83rj.

Workarounds

  • Configure reverse proxy or web server rules to block requests containing directory traversal sequences
  • Implement network-level access controls to restrict direct access to application servers
  • Remove or relocate any sensitive files from the .next distribution directory
  • Deploy a WAF with path traversal detection capabilities in front of affected applications
bash
# Example nginx configuration to block path traversal attempts
location / {
    # Block requests containing directory traversal sequences
    if ($request_uri ~* "\.\.") {
        return 403;
    }
    
    # Block direct access to .next directory
    location ~ /\.next {
        deny all;
        return 404;
    }
    
    proxy_pass http://nextjs_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNext.js

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability84.51%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-23

  • CWE-22
  • Technical References
  • GitHub Next.js Release v9.3.2

  • GitHub Security Advisory GHSA-fq77-7p7r-83rj
  • Related CVEs
  • CVE-2026-27977: Vercel Next.js Auth Bypass Vulnerability

  • CVE-2026-27978: Vercel Next.js CSRF Vulnerability

  • CVE-2026-27979: Vercel Next.js DoS Vulnerability

  • CVE-2026-27980: Vercel Next.js DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English