PT-2025-12427 · Next.Js · Next.Js
Published
2025-03-21
·
Updated
2025-08-01
·
CVE-2025-29927
9.4
Critical
Base vector | Vector | AV:N/AC:L/Au:N/C:C/I:C/A:N |
## Vulnerability Report
**Name of the Vulnerable Software and Affected Versions:** Next.js versions 11.1.4 through 15.2.2. Patches are available in versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
**Description:**
A critical authorization bypass vulnerability exists in Next.js middleware. An attacker can exploit this flaw by manipulating the `x-middleware-subrequest` header, allowing them to bypass authentication and authorization checks, potentially gaining unauthorized access to sensitive areas of the application. This vulnerability has a CVSS score of 9.1. Exploitation has been observed in the wild.
**Recommendations:**
* Upgrade to Next.js version 12.3.5 or later.
* If upgrading is not immediately possible, implement a workaround to block requests containing the `x-middleware-subrequest` header at the web server or proxy level.
* Review and strengthen authentication and authorization logic within the middleware to ensure robust security.
* Monitor for suspicious activity and unauthorized access attempts.
* Consider using a Web Application Firewall (WAF) to filter malicious requests.
Fix
DoS
RCE
Improper Authorization
Weakness Enumeration
Related Identifiers
Affected Products
References · 580
- https://nvd.nist.gov/vuln/detail/CVE-2025-29927 · Security Note
- https://osv.dev/vulnerability/CVE-2025-29927 · Vendor Advisory
- https://osv.dev/vulnerability/GHSA-f82v-jwr5-mffw · Vendor Advisory
- https://bdu.fstec.ru/vul/2025-03185 · Security Note
- https://github.com/vercel/next.js⭐ 132896 🔗 28737 · Note
- https://github.com/vercel/next.js/releases/tag/v13.5.9⭐ 131032 🔗 28140 · Note
- https://github.com/vercel/next.js/releases/tag/v12.3.5⭐ 131032 🔗 28140 · Note
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2⭐ 130976 🔗 28112 · Note
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48⭐ 130976 🔗 28112 · Note
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw⭐ 130960 🔗 28108 · Note
- https://github.com/vulhub/vulhub⭐ 18494 🔗 4557 · Note
- https://twitter.com/AngeloAkamai/status/1905644820313637215 · Twitter Post
- https://twitter.com/CyCognito/status/1906777288957366740 · Twitter Post
- https://twitter.com/MatthewThomz/status/1904474811692146868 · Twitter Post
- https://twitter.com/rst_cloud/status/1906102338823086504 · Twitter Post