Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2025-29927

Exploitation confirmed. First attested on 2025-04-24 by GCVE · kevintel, GCVE · shadowserver.

  • Published2025-03-21
  • Fixed in15.2.3 · 14.2.25 · 13.5.9 · 12.3.5
  • WeaknessCWE-285 · CWE-863

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-03-2115:15CVE publishedNVD
  2. 2025-04-05Exploit-DB entryExploit-DB
  3. 2025-04-2410:37Listed as exploited by GCVEGCVE
  4. 2025-04-2410:37Exploitation first reportedGCVE

Versions per branch

NVD · OSV
Next.js
BranchAffectedFixed in
15.x≥ 15.0.0, < 15.2.315.2.3
14.x≥ 14.0.0, < 14.2.2514.2.25
13.x≥ 13.0.0, < 13.5.913.5.9
12.3≥ 11.1.4, < 12.3.512.3.5
12.x≥ 12.0.0, < 12.3.512.3.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vercel next.js
    Affected
    • = >= 11.1.4, < 12.3.5no fix stated
    • = >= 14.0.0, < 14.2.25no fix stated
    • = >= 15.0.0, < 15.2.3no fix stated
    • = >= 13.0.0, < 13.5.9no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-04-08

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/nextRoot:npmall versions · fixed in 12.3.4-root.io.4
  • @rootio/nextRoot:npmall versions · fixed in 14.2.5-root.io.5
  • @rootio/nextRoot:npmall versions · fixed in 12.1.0-root.io.1
  • @rootio/nextRoot:npmall versions · fixed in 12.1.0-root.io.2
  • @rootio/nextRoot:npmall versions · fixed in 12.1.5-root.io.1
  • @rootio/nextRoot:npmall versions · fixed in 12.1.5-root.io.2
  • @rootio/nextRoot:npmall versions · fixed in 12.1.6-root.io.1
  • @rootio/nextRoot:npmall versions · fixed in 12.1.6-root.io.2

274 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-29927 Red Hat Product Security

    nextjs: Authorization Bypass in Next.js Middleware

Full record on NVD

Fix

  1. Update Next.js to 15.2.3 · 14.2.25 · 13.5.9 · 12.3.5

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-52124
Exploit-DB
Metasploit modules
1 moduleauxiliary/scanner/http/nextjs_middleware_auth_bypassrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2025-03-21
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-f82v-jwr5-mffw

Frequently asked questions

What is CVE-2025-29927?

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.

Is CVE-2025-29927 actively exploited?

Active exploitation of CVE-2025-29927 has not been confirmed. Its EPSS score was 99.2% on 2026-11-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-29927?

CVE-2025-29927 has a CVSS v3 base score of 9.1 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running Next.js? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record