CVE-2024-51479: Next.js authorization bypass vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98815%
CWE
Published
12/17/2024
Updated
12/19/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| next | npm | >= 9.5.5, < 14.2.15 | 14.2.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of i18n query parameters in three key areas:
- base-server.ts's request processing didn't validate locale parameters, letting attackers inject arbitrary values to manipulate perceived paths
- resolve-routes.ts didn't clean i18n params without configuration, creating path resolution discrepancies
- Missing validation in i18n-provider.ts allowed invalid locales to persist. The patch added parameter validation/cleaning in these locations, confirming their role in the vulnerability. High confidence for first two due to direct security impact visible in commit diff; medium for i18n-provider as it was part of defense-in-depth fixes.