CVE-2024-51479 in Vercel Next.Js
Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affect...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vercel | Next.Js | ≥ 9.5.5, < 14.2.15 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-51479 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-044571-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2024-12-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-285: CWE-285
CWE-863: Incorrect Authorization
Software performs an authorization check incorrectly, allowing access beyond intended privileges.
Related attack patterns (CAPEC)
CAPEC-5 Blue Boxing via CWE-285
CAPEC-13 Subverting Environment Variable Values via CWE-285
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-285
CAPEC-51 Poison Web Service Registry via CWE-285
CAPEC-59 Session Credential Falsification through Prediction via CWE-285
Show all 17
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-285
CAPEC-76 Manipulating Web Input to File System Calls via CWE-285
CAPEC-127 Directory Indexing via CWE-285
CAPEC-402 Bypassing ATA Password Security via CWE-285
CAPEC-647 Collect Data from Registries via CWE-285
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-285
CAPEC-17 Using Malicious Files via CWE-285
CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-285
CAPEC-77 Manipulating User-Controlled Variables via CWE-285
CAPEC-87 Forceful Browsing via CWE-285
CAPEC-104 Cross Zone Scripting via CWE-285
CAPEC-668 Key Negotiation of Bluetooth Attack (KNOB) via CWE-285
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-51479 affects Next.js applications, allowing unauthorized access to pages directly under the root directory. This can lead to information disclosure. The vulnerability is mitigated for applications hosted on Vercel, but others should upgrade to Next.js 14.2.15 or later.
An attacker can bypass authorization checks in Next.js applications by accessing pages directly under the root directory. This can lead to unauthorized access to sensitive information.
Compensating controls AI-drafted, review before use
Implement additional authorization checks in the application logic to verify user permissions for all paths, not just based on the pathname.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-51479?
CVE-2024-51479 affects Next.js applications, allowing unauthorized access to pages directly under the root directory. This can lead to information disclosure. The vulnerability is mitigated for applications hosted on Vercel, but others should upgrade to Next.js 14.2.15 or later.
What is the CVSS score for CVE-2024-51479?
CVE-2024-51479 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 4.2%.
Is CVE-2024-51479 actively exploited?
No confirmed active exploitation of CVE-2024-51479 as of 2026-09-25.
How do I remediate CVE-2024-51479?
Priority: MEDIUM.
What systems are affected by CVE-2024-51479?
CVE-2024-51479 affects Vercel Next.Js.
What NERC-CIP standard applies to CVE-2024-51479?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows unauthorized access to sensitive information, which can compromise the security of the electronic security perimeter.
What IEC 62443 requirement maps to CVE-2024-51479?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 as it involves a vulnerability that can lead to unauthorized access to application resources, which is a critical security concern in ICS environments.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vercel","product":"Next.Js","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.