Authorization Bypass in Next.js Middleware
Not confirmed exploited. 3 of 8 rule sources name it. Our CRS test: partly blocked.
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… More
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.
Edge coverage
Claimed by vendorsAsk Vigil
AI · answers from this pageWorkers AI (Llama 3.3). Can be wrong: check the cited source.
Severity, decoded
CVSS 3.1Exploitable over the network, with no privileges and no user interaction, leading to full loss of confidentiality and integrity.
How the score is built
- Attack vectorAn attacker can reach it over the internet; no access to your network needed.Network
- Attack complexityNo special conditions are needed; the attack works reliably.Low
- Privileges requiredNo account or login is needed.None
- User interactionNo one has to click or open anything; the attack works on its own.None
- ScopeThe damage stays within the vulnerable component.Unchanged
- Confidentiality impactAn attacker can read all data the affected component holds, or the most sensitive parts of it.High
- Integrity impactAn attacker can change any data or files the affected component protects.High
- Availability impactThe component keeps working normally.None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NCISA has seen no public exploit and no attacks.
Attackers can script the attack end to end and hit many targets at once.
A successful attack gives full control over the affected software or all of its data.
Public exploits
3 found- MetasploitNext.js Middleware Authorization Bypass Scanner2025-03-21 · auxiliary · rank Normal · has check
- Exploit-DBNext.js Middleware 15.2.2 - Authorization Bypass2025-04-05 · webapps · multiple
- NucleiCVE-2025-29927.yamldetection template, replayed in our lab
Links are to third-party code: never run it outside an isolated lab.
Timeline
- 2025-03-21CVE publishedCVE List
- 2025-03-21Metasploit module publishedNext.js Middleware Authorization Bypass Scanner
- 2025-03-22Cloudflare ships a ruleNext.js - Auth Bypass - CVE:CVE-2025-29927
- 2025-03-31OWASP CRS ships a rulefeat: block header related to CVE-2025-29927 (Next.js) (https://github.com/coreruleset/coreruleset/pull/4053)
- 2025-04-05Exploit published on Exploit-DBNext.js Middleware 15.2.2 - Authorization Bypass
- 2025-04-28F5 ships a ruleNext.js Middleware Authorization Bypass
- 2026-11-02Our test: OWASP Core Rule Set blocked part of itparanoia level 1, anomaly threshold 5, default CRS settings
- 2026-11-02Our test: OWASP Core Rule Set blocked part of itparanoia level 2, anomaly threshold 5, default CRS settings
Vendor statements
QuotedCloudflareWAF Managed Rules
First rule 2025-03-22, 1 day after the CVE was published.
Next.js - Auth Bypass - CVE:CVE-2025-29927. Previous action: N/A. New action: Disabled. This is a New Detection
Next.js - Auth Bypass - CVE:CVE-2025-29927 - 2. Previous action: Log. New action: Disabled. This is a New Detection
AWSAWS WAF Managed Rules
We found no public statement from this vendor naming this CVE. That is not proof of no protection: generic rules may still catch it. AWS often describes a vulnerability without naming its CVE (for example "Log4j"). We count only entries that name the CVE, so AWS coverage is understated.
Microsoft AzureFront Door and Application Gateway WAF (DRS)
We found no public statement from this vendor naming this CVE. That is not proof of no protection: generic rules may still catch it. The rule tables name CVEs but carry no dates, so Azure is left out of every time-to-rule figure.
Google CloudCloud Armor preconfigured WAF rules
We found no public statement from this vendor naming this CVE. That is not proof of no protection: generic rules may still catch it. Google names few CVEs: the release notes start in May 2024 and the rules reference lists CVEs without dates. Its cve-canary rules are opt-in.
FastlyNext-Gen WAF virtual patches
The CVE predates the oldest entry in this vendor's public feed, so a rule may exist that we cannot see.
F5Attack signatures (Distributed Cloud WAF)
First rule 2025-04-28, 38 days after the CVE was published.
Added: signature 200013111 "Next.js Middleware Authorization Bypass" (Authentication/Authorization Attacks, risk High), systems: JavaScript, ReactJS. References: CVE-2025-29927.
AkamaiApp & API Protector (Adaptive Security Engine)
This vendor publishes no machine-readable rule changelog we can check.
OWASP CRSCore Rule Set (open source, used inside many WAFs)
First rule 2025-03-31, 10 days after the CVE was published.
feat: block header related to CVE-2025-29927 (Next.js) (https://github.com/coreruleset/coreruleset/pull/4053)
Social
No posts seen yet on X, Bluesky, Mastodon, Hacker News or GitHub.