{"id":"CVE-2025-29927","aliases":["CVE-2025-29927","GHSA-f82v-jwr5-mffw"],"related":[],"kind":"vulnerability","state":"published","title":"Authorization Bypass in Next.js Middleware","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Impact\nIt is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware.\n\n# Patches\n* For Next.js 15.x, this issue is fixed in `15.2.3`\n* For Next.js 14.x, this issue is fixed in `14.2.25`\n* For Next.js 13.x, this issue is fixed in 13.5.9\n* For Next.js 12.x, this issue is fixed in 12.3.5\n* For Next.js 11.x, consult the below workaround.\n\n_Note: Next.js deployments hosted on Vercel are automatically protected against this vulnerability._\n\n# Workaround\nIf patching to a safe version is infeasible, we recommend that you prevent external user requests which contain the `x-middleware-subrequest` header from reaching your Next.js application.\n\n## Credits\n\n- Allam Rachid (zhero;)\n- Allam Yasser (inzo_)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Next.js es un framework de React para crear aplicaciones web full-stack. En versiones anteriores a la 14.2.25 y la 15.2.3, era posible omitir las comprobaciones de autorización dentro de una aplicación Next.js si esta se realizaba en middleware. Si no es posible aplicar una versión segura, se recomienda evitar que las solicitudes de usuarios externos que contengan el encabezado \"x-middleware-subrequest\" lleguen a la aplicación Next.js. Esta vulnerabilidad se corrigió en las versiones 14.2.25 y 15.2.3.","source":"nvd"}],"published":"2025-03-21T14:34:49.570Z","modified":"2026-09-10T03:50:23.209Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"version":">= 11.1.4, < 12.3.5","status":"affected"},{"version":">= 14.0.0, < 14.2.25","status":"affected"},{"version":">= 15.0.0, < 15.2.3","status":"affected"},{"version":">= 13.0.0, < 13.5.9","status":"affected"}],"vendor":"vercel","product":"next.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"13.0.0","status":"affected","fixed":"13.5.9"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"14.2.25"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.2.3"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"12.0.0","status":"affected","fixed":"12.3.5"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"11.1.4","fixed":"12.3.5"},{"status":"affected","introduced":"13.0.0","fixed":"13.5.9"},{"status":"affected","introduced":"14.0.0","fixed":"14.2.25"},{"status":"affected","introduced":"15.0.0","fixed":"15.2.3"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/releases/tag/v12.3.5","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/releases/tag/v13.5.9","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/03/23/3","tags":["mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/03/23/4","tags":["mailing-list","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250328-0002/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29927","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250328-0002","tags":["web"],"sources":["ghsa"]},{"url":"https://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-04-08T15:16:38.515Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-29927","url":"https://www.cve.org/CVERecord?id=CVE-2025-29927","licence":"CVE Terms of Use","modified":"2025-04-08T15:17:05.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f82v-jwr5-mffw","url":"https://github.com/advisories/GHSA-f82v-jwr5-mffw","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.209Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-29927","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29927","licence":"Public domain","modified":"2026-06-17T09:05:53.640Z"}],"updatedAt":"2026-11-25T22:58:55.408Z","epss":{"score":0.99225,"percentile":0.99936,"date":"2026-12-01T12:00:22.000Z"}}