CVE-2025-29927Authorization Bypass in Next.js Middleware
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.
What to do
Likely to be exploited: EPSS gives a 75% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-10.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-aot-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet10.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | firefox | Not affected | ||
| Red Hat Enterprise Linux 10 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 10 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-10.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-aot-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet10.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet6.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet7.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-10.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-aot-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet10.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | firefox | Not affected | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected | ||
| npm library | next | Fixed | 12.3.5 | GHSA-f82v-jwr5-mffw |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- vercel next.js: affected: >= 11.1.4, < 12.3.5, >= 14.0.0, < 14.2.25, >= 15.0.0, < 15.2.3, >= 13.0.0, < 13.5.9
References
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48
- https://github.com/vercel/next.js/releases/tag/v12.3.5
- https://github.com/vercel/next.js/releases/tag/v13.5.9
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.