CVE-2024-51479
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.
Description as published by the source, in English.
Key facts
- Published
- 2024-12-17
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
4.0 %
higher than 89 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| next (npm) | ≥ 9.5.5, < 14.2.15 | Affected | |
| Vercel | Next.js | ≥ 9.5.5, < 14.2.15 | Affected |
Weakness type
-
CWE-863: Incorrect Authorization
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
-
CWE-285: Improper Authorization
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1005: Data from Local System
- T1012: Query Registry
- T1083: File and Directory Discovery
- T1134.001: Token Impersonation/Theft
- T1550.004: Web Session Cookie
- T1552.002: Credentials in Registry
- T1565.002: Transmitted Data Manipulation
- T1574.005: Executable Installer File Permissions Weakness
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
- T1574.010: Services File Permissions Weakness
References
- https://github.com/vercel/next.js/releases/tag/v14.2.15
- https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f
Related at Berigo
Articles
-
New malware puts its next move to a vote among four AI models
Same product
2026-09-26
Cisco Talos has analysed CLOSEDQUORUM, a Windows implant that hands the choice of its next action to four commercial AI models. Talos has not confirm…
-
A backdoor built from ordinary Windows tools keeps taking new documents
Same product
2026-09-26
On 21 September 2026 Securonix described a backdoor it calls TASK#STOMP, assembled from Windows Script Host, PowerShell and the Task Scheduler. It se…
-
Every build of the Vidar stealer decodes its strings a different way
Same product
2026-09-26
Zscaler ThreatLabz tracked Vidar from May to early September 2026 and watched its string protection move from single byte XOR, through ChaCha20, to a…
-
Four years in prison for one of Conti's developers
Same product
2026-09-26
Oleksii Oleksiyovych Lytvynenko was sentenced in the United States on 10 September 2026 to four years in prison for his part in the Conti ransomware …
Services
-
ISO/IEC 27001: advisory and certification readiness
ISO/IEC 27001 advisory and an information security management system that is used in practice and able to withstand a certification audit. Choose a g…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.