{"answers":{"affected":"8 open source packages ship an affected version, including next. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-29927 exists.","fix":"Upgrade next to a fixed version for your release line: 12.3.5, 13.5.9, 14.2.25 or 15.2.3.","what":"CVE-2025-29927 is a critical authentication bypass vulnerability in Vercel Next.js, published on 21 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-29927 and fix it if it is affected.\n\nWhat it is: CVE-2025-29927 is a critical authentication bypass vulnerability in Vercel Next.js, published on 21 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-29927 exists.\n\nAffected packages and fixed versions:\n- next (npm): affected from 12.0.0; fixed in 12.3.5\n- next (npm): affected from 12.0.0; fixed in 12.3.5\n- next (npm): affected from 13.0.0; fixed in 13.5.9\n- next (npm): affected from 13.0.0; fixed in 13.5.9\n- next (npm): affected from 14.0.0; fixed in 14.2.25\n- next (npm): affected from 14.0.0; fixed in 14.2.25\n- next (npm): affected from 15.0.0; fixed in 15.2.3\n- next (npm): affected from 15.0.0; fixed in 15.2.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-29927/ (Markdown: https://insights.sbomify.com/CVE-2025-29927/index.md)","id":"CVE-2025-29927","markdown":"https://insights.sbomify.com/CVE-2025-29927/index.md","name":"CVE-2025-29927","record":{"aliases":["GHSA-f82v-jwr5-mffw","MINI-fwhh-grf5-h64v","ROOT-APP-NPM-CVE-2025-29927"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Next.js framework","requires_auth":"none","summary":"Attackers can bypass authorization checks in Next.js middleware by sending a specific header, allowing unauthorized access to protected resources.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"next.js","vendor":"vercel"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-285","name":"Improper Authorization"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":1,"first_seen":"2025-03-21","github_poc":127,"max_poc_stars":101,"metasploit":1,"nuclei":1,"refs":[{"date":"2025-03-23T12:13:35Z","kind":"github_poc","ref":"https://github.com/aydinnyunus/CVE-2025-29927","stars":101,"title":"CVE-2025-29927 Proof of Concept"},{"date":"2025-03-28T11:09:25Z","kind":"github_poc","ref":"https://github.com/AnonKryptiQuz/NextSploit","stars":92,"title":"NextSploit is a command-line tool designed to detect and exploit CVE-2025-29927, a security flaw in Next.js"},{"date":"2025-03-23T19:41:05Z","kind":"github_poc","ref":"https://github.com/websecnl/CVE-2025-29927-PoC-Exploit","stars":20,"title":"Proof-of-Concept for Authorization Bypass in Next.js Middleware"},{"date":"2025-03-23T08:11:09Z","kind":"github_poc","ref":"https://github.com/6mile/nextjs-CVE-2025-29927","stars":19,"title":"A Nuclei template to detect CVE-2025-29927 the Next.js authentication bypass vulnerability"},{"date":"2025-03-23T08:37:25Z","kind":"github_poc","ref":"https://github.com/azu/nextjs-cve-2025-29927-poc","stars":15,"title":"Next.js PoC for CVE-2025-29927"},{"date":"2025-03-23T09:22:35Z","kind":"github_poc","ref":"https://github.com/lirantal/vulnerable-nextjs-14-CVE-2025-29927","stars":14,"title":null},{"date":"2025-04-14T15:12:13Z","kind":"github_poc","ref":"https://github.com/UNICORDev/exploit-CVE-2025-29927","stars":14,"title":"Exploit for CVE-2025-29927 (Next.js) - Authorization Bypass"},{"date":"2025-03-23T21:42:09Z","kind":"github_poc","ref":"https://github.com/MuhammadWaseem29/CVE-2025-29927-POC","stars":10,"title":"Authorization Bypass in Next.js Middleware"}],"tier":"weaponised"},"has_fix":true,"headline":"Authorization Bypass in Next.js Middleware","id":"CVE-2025-29927","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"vercel:next.js","products":["vercel:next.js"],"type":"auth_bypass","year":"2025"},"n_packages":8,"n_references":5,"next":{"headline":"authentik's deletion of sessions did not revoke sessions when using database session storage","id":"CVE-2025-29928"},"packages":[{"ecosystem":"npm","fixed":["12.3.5"],"introduced":["12.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["12.3.5"],"introduced":["12.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["13.5.9"],"introduced":["13.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["13.5.9"],"introduced":["13.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["14.2.25"],"introduced":["14.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["14.2.25"],"introduced":["14.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["15.2.3"],"introduced":["15.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-f82v-jwr5-mffw"},{"ecosystem":"npm","fixed":["15.2.3"],"introduced":["15.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-f82v-jwr5-mffw"}],"prev":{"headline":"The WikiManager REST API allows any user to create wikis","id":"CVE-2025-29926"},"products":["next.js"],"published":"2025-03-21","related":[{"cvss_score":8.6,"headline":"Next.js: Server-side request forgery in applications using WebSocket upgrades","id":"CVE-2026-44578","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":8.3,"headline":"Next.js: Server-Side Request Forgery in Image Optimization","id":"CVE-2026-94483","kev_date_added":null,"published":"2026-10-02"},{"cvss_score":8.3,"headline":"Next.js: Middleware / Proxy bypass in App Router applications using Turbopack and single locale","id":"CVE-2026-64642","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.3,"headline":"Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname","id":"CVE-2026-64645","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.3,"headline":"Next.js: Server-Side Request Forgery in Server Actions on Custom Servers","id":"CVE-2026-64649","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.2,"headline":"Next.js: Denial of Service in App Router using Server Actions","id":"CVE-2026-64641","kev_date_added":null,"published":"2026-07-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-08","vendors":["vercel"]},"summary":"Attackers can bypass authorization checks in Next.js middleware by sending a specific header, allowing unauthorized access to protected resources.","url":"https://insights.sbomify.com/CVE-2025-29927/"}