{"schemaVersion":3,"id":"CVE-2025-29927","aliases":["CGA-38hr-jp5g-rw4c","CGA-5c99-2rqx-3v42","CGA-gjg2-6vp7-3v3g","GHSA-f82v-jwr5-mffw"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-03-21T14:34:49.570Z","modified":"2025-04-08T15:17:05.315Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99225,"percentile":0.99937,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.99225},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99225,"percentile":0.99937}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99225,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99225,"percentile":0.99937}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"52124","name":"Next.js Middleware 15.2.2 -  Authorization Bypass","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52124","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"multiple","file":"exploits/multiple/webapps/52124.txt","codes":["CVE-2025-29927"]},"metasploit":null},{"id":"MSF_AUXILIARY_SCANNER_HTTP_NEXTJS_MIDDLEWARE_AUTH_BYPASS","name":"Next.js Middleware Authorization Bypass Scanner","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/nextjs_middleware_auth_bypass.rb","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"auxiliary/scanner/http/nextjs_middleware_auth_bypass","rank":"300","rankName":"normal","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs"],"reliability":[]}}],"exploitCount":2,"weaknesses":[{"id":"CWE-285","name":"Improper Authorization","description":"The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/285.html"},{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"chainguard","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.9.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r0","eol":null,"hubHref":null},{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 13.0.0, < 13.5.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 14.0.0, < 14.2.25","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0.0, < 15.2.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0.0, < 12.3.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 13.0.0, < 13.5.9 | ≥ 14.0.0, < 14.2.25 | ≥ 15.0.0, < 15.2.3 | ≥ 12.0.0, < 12.3.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null},{"vendor":"vercel","product":"next.js","name":"next.js","label":"next.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 11.1.4, < 12.3.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0.0, < 13.5.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 14.0.0, < 14.2.25","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0.0, < 15.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 11.1.4, < 12.3.5 | ≥ 13.0.0, < 13.5.9 | ≥ 14.0.0, < 14.2.25 | ≥ 15.0.0, < 15.2.3","eol":null,"hubHref":"/vendor/vercel/nextjs"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw","label":"github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Vendor Advisory"]},{"url":"https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2","label":"github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48","label":"github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://github.com/vercel/next.js/releases/tag/v12.3.5","label":"github.com/vercel/next.js/releases/tag/v12.3.5","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/vercel/next.js/releases/tag/v13.5.9","label":"github.com/vercel/next.js/releases/tag/v13.5.9","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"http://www.openwall.com/lists/oss-security/2025/03/23/3","label":"www.openwall.com/lists/oss-security/2025/03/23/3","hostname":"www.openwall.com","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/03/23/4","label":"www.openwall.com/lists/oss-security/2025/03/23/4","hostname":"www.openwall.com","tags":["WEB","Mailing List"]},{"url":"https://security.netapp.com/advisory/ntap-20250328-0002/","label":"security.netapp.com/advisory/ntap-20250328-0002/","hostname":"security.netapp.com","tags":["Advisory","Third Party Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/29xxx/CVE-2025-29927.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/29xxx/CVE-2025-29927.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29927","label":"nvd.nist.gov/vuln/detail/CVE-2025-29927","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.netapp.com/advisory/ntap-20250328-0002","label":"security.netapp.com/advisory/ntap-20250328-0002","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware","label":"vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware","hostname":"vercel.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-89C9-9J8H-469G","CGA-FP7V-RGJP-XFJH"]},"timeline":[{"kind":"published","date":"2025-03-21T14:34:49.570Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-08T15:17:05.315Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:37:25.302Z","stale":false,"partial":false}}