cve.bz

CVE-2025-29927 vercel next.js: Incorrect Authorization

9.1 criticalExploitEPSS 99.2%Fix available

Critical (9.1) in vercel next.js. EPSS 99.2% estimated probability of exploitation activity in the next 30 days. Fixed in next 12.3.5, 13.5.9, 14.2.25.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
99.2% (unchanged from 99.2% a week ago; 99.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-863 Incorrect Authorization
CWE-285 Improper Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-29927 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-29927?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-29927?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-29927 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vercel:next.jsfrom 11.1.4 before 12.3.5
vercel:next.jsfrom 13.0.0 before 13.5.9
vercel:next.jsfrom 14.0.0 before 14.2.25
vercel:next.jsfrom 15.0.0 before 15.2.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f82v-jwr5-mffwnpmnext>=13.0.0 <13.5.913.5.9
GHSA-f82v-jwr5-mffwnpmnext>=14.0.0 <14.2.2514.2.25
GHSA-f82v-jwr5-mffwnpmnext>=15.0.0 <15.2.315.2.3
GHSA-f82v-jwr5-mffwnpmnext>=12.0.0 <12.3.512.3.5

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated as Critical impact, rather than Important, because it allows complete authorization bypass in affected Next.js versions. Attackers can circumvent middleware-based authentication and access protected routes simply by including a specific HTTP header (x-middleware-subrequest). This bypasses all security controls implemented in middleware, granting unauthorized access to sensitive application functionality, including admin panels and restricted resources.

Red Hat Enterprise Linux is not affected by this vulnerability as the authorization functionality of Next.js is not in use and the component is only used at build time.

Red Hat Enterprise Linux AI is not affected since the listed components Pathservice and UI are not provided to the customers.

Red Hat Trusted Artifact Signer and Streams for Apache Kafka 2 are not affected by this vulnerability as they do not use Next.js for any authorization functionality.

Red Hat's mitigation

Block or drop external user requests which contain the x-middleware-subrequest header from reaching your Next.js application.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10dotnet10.0Not affected
Red Hat Enterprise Linux 10dotnet8.0Not affected
Red Hat Enterprise Linux 10dotnet9.0Not affected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8dotnet10.0Not affected
Red Hat Enterprise Linux 8dotnet8.0Not affected
Red Hat Enterprise Linux 8dotnet9.0Not affected
Red Hat Enterprise Linux 8dotnet/sdkNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8rhel8/dotnet-80Not affected
Red Hat Enterprise Linux 8rhel8/dotnet-90Not affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 8ubi8/dotnet-80Not affected
Red Hat Enterprise Linux 8ubi8/dotnet-90Not affected
Red Hat Enterprise Linux 9dotnet10.0Not affected
Red Hat Enterprise Linux 9dotnet6.0Not affected
Red Hat Enterprise Linux 9dotnet7.0Not affected
Red Hat Enterprise Linux 9dotnet8.0Not affected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-29927.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

45 more

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Next.js Middleware Bypass
  • Emerging Threats Open ET WEB_SERVER Next.js Middleware Authorization Bypass (CVE-2025-29927) sid 2061026

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-285 (16).

References

Check your stackJSON