next is vulnerable to Information Disclosure
60
CVE Score
Medium
Information Disclosure
Next.js applications that set cookies through NextResponse on Edge runtime routes (App Router route handlers and Pages Router Edge API routes) include an internal x-middleware-set-cookie header in the public response. This header duplicates the cookie value and its attributes, so HttpOnly cookies such as session tokens become readable by JavaScript running on the same origin, defeating the protection HttpOnly is meant to provide.
Upgrade the next library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application sets a sensitive cookie (for example a session token) with NextResponse on an Edge runtime route, either in an App Router route handler or a Pages Router Edge API route.
13.0.0 - 15.5.28
Fixed in 15.5.2916.0.0 - 16.4.4
Fixed in 16.4.5next is vulnerable to Information Disclosure in versions 13.0.0 - 15.5.28 and 16.0.0 - 16.4.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.