CVE-2025-29927
Authorization Bypass in Next.js Middleware
Reported by github_m · Published March 21, 2025
next is fixed in 15.2.3, 14.2.25, 13.5.9 and 1 more (npm)
Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| next | npm | 15.2.3, 14.2.25, 13.5.9, 12.3.5 |
| jitsucom-jitsu | Chainguard | 2.9.0-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | >= 11.1.4, < 12.3.5, >= 14.0.0, < 14.2.25, >= 15.0.0, < 15.2.3 |
| chainguard | jitsucom-jitsu | 0 |
| vercel | next.js | 13.0.0, 11.1.4, 14.0.0 |
| wolfi | jitsucom-jitsu | 0 |
| npm | next | 13.0.0, 14.0.0, 15.0.0 |
Timeline
- Mar 21, 2025 CVE Published
- Mar 22, 2025 EPSS Score (30 in total, the first dated here)
- Mar 23, 2025 VulnCheck XDB Entry (95 in total, the first dated here)
- Mar 24, 2025 PoC Published (8 in total, the first dated here)
- Mar 28, 2025 VulnCheck KEV Exploitation (133 in total, the first dated here)
- Mar 10, 2026 Security Advisory (3 in total, the first dated here)
- Jun 14, 2026 Coalition ESS Score
- Nov 9, 2026 CrowdSec Sighting (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-29927
vulnetix vdb fixes CVE-2025-29927
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-29927/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw x_refsource_CONFIRM
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2 x_refsource_MISC
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48 x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v12.3.5 x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v13.5.9 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/03/23/3 url
- http://www.openwall.com/lists/oss-security/2025/03/23/4 url
- https://security.netapp.com/advisory/ntap-20250328-0002/ url
- https://nvd.nist.gov/vuln/detail/CVE-2025-29927 advisory
- https://github.com/advisories/GHSA-f82v-jwr5-mffw advisory
- https://github.com/vercel/next.js url
- https://security.netapp.com/advisory/ntap-20250328-0002 advisory
- https://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware url
- CVE-2025-29927: Authorization Bypass in Next.js third-party-analysis