Next.js is a React framework for building full-stack web applications. From 15.4.0 to before 15.5.16 and 16.2.5, applications that rely on middleware to protect dynamic routes can be vulnerable to authorization bypass. In affected deployments, specially crafted query parameters can alter the dynamic route value seen by the page while leaving the visible path unchanged, which can allow protected content to be rendered without passing the expected middleware check. This vulnerability is fixed in 15.5.16 and 16.2.5.
Security readout for executives and security teams
Plain-English summary
A flaw in Next.js lets attackers slip past the security check that guards protected pages. By crafting specific query parameters, an unauthenticated or low-privilege user can view content that middleware was supposed to block. The visible URL looks normal, so the bypass may not be obvious in logs. Vercel has released fixed versions that customers should install promptly.
Executive priority
Treat as a high-priority patch this sprint for any customer-facing or internal Next.js app that relies on middleware for access control. Impact is confidentiality and integrity of gated content; no denial-of-service. Coordinate with application owners to schedule upgrade windows within days, not weeks, and confirm no legacy branches remain on affected versions.
Technical view
Next.js versions 15.4.0 through 15.5.15 and 16.0.0 through 16.2.4 mishandle dynamic route parameters when middleware runs. A crafted query string can change the dynamic route value the page renders while the visible path stays unchanged, causing the middleware authorization check to evaluate a different route than what is served. This enables authorization bypass (CWE-288) and visible/actual mismatch (CWE-551). Fixed in 15.5.16 and 16.2.5.
Likely exposure
Any Next.js application on 15.4.0–15.5.15 or 16.0.0–16.2.4 that uses middleware to gate access to dynamic routes (e.g., /users/[id], /admin/[section]). Deployments on Vercel, self-hosted Node, or container images built on affected releases are all in scope. Static-only or non-middleware-protected apps are not affected.
Exploitation context
No CISA KEV listing and no public reports of active exploitation are cited in the source bundle. CVSS 8.1 (AV:N/AC:L/PR:L/UI:N/C:H/I:H) indicates a network-reachable, low-complexity bypass requiring only low privileges and no user interaction. The GitHub Security Advisory GHSA-492v-c6pp-mqqv provides the authoritative technical description; Red Hat has issued vendor errata RHSA-2026:37272 and RHSA-2026:34608.
Researcher notes
Root cause is a mismatch between the route value middleware evaluates and the route the page ultimately renders when specific query parameters are supplied. This is a classic CWE-551 visible/actual behavior divergence layered on a CWE-288 authentication bypass. Defense-in-depth guidance: never rely on middleware alone for authorization decisions on dynamic routes; re-check identity and resource ownership inside the page, route handler, or server component. No public PoC or KEV entry cited as of 2026-07-10.
Mitigation direction
Upgrade Next.js to 15.5.16 (15.x branch) or 16.2.5 (16.x branch) across all environments.
Apply Red Hat errata RHSA-2026:37272 and RHSA-2026:34608 on affected RHEL-based deployments.
Rebuild and redeploy container images and serverless bundles that pin an affected Next.js version.
Re-enforce authorization inside page/route handlers as defense-in-depth, not only in middleware.
Review WAF or edge rules to alert on unusual query parameters targeting dynamic route paths.
Validation and detection
Inventory Next.js versions via package.json, lockfiles, and SBOMs across repos and build artifacts.
Confirm upgraded version reports 15.5.16 or 16.2.5 in production runtime logs or /_next assets.
Review middleware.ts/matcher config to identify dynamic routes gated only by middleware.
Test protected dynamic routes with variant query strings to verify middleware still enforces authorization.
Check access logs for anomalous query parameters against dynamic route paths since 2026-05-13.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-288: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
7Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-288 · source CWE mapping
Authentication Bypass Using an Alternate Path or Channel
Authentication Bypass Using an Alternate Path or Channel represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Incorrect Behavior Order: Authorization Before Parsing and Canonicalization
Incorrect Behavior Order: Authorization Before Parsing and Canonicalization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.