HTTP: Next.js Middleware Authorization Bypass

This signature detects attempts to exploit a known vulnerability against Next.js Middleware. A successful attack can lead to security bypass.

Extended Description

Next.js is a React framework for building full-stack web applications. Prior to 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 14.2.25 and 15.2.3.

References

CVE: CVE-2025-29927

Short Name
HTTP:CTS:NEXTJS-MIIDLWRE-AUTHB
Severity
Critical
Recommended
True
Recommended Action
Drop
Category
HTTP
Keywords
Authorization Bypass CVE-2025-29927 Middleware Next.js
Release Date
04/03/2025
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3796
False Positive
Unknown

Found a potential security threat?