@descope/nextjs-sdk is vulnerable to Authentication Bypass
91
CVE Score
Critical
Authentication Bypass
The session() and getSession(req) server helpers decode the client-supplied x-descope-session request header from Base64 and return it as trusted authentication data without validating the JWT signature. When this header is present it is returned before the cookie path that would call validateJwt, so signature verification is never reached. An unauthenticated request can forge arbitrary session claims, including user identity and roles such as admin, to bypass authentication in any route handler or server component that relies on these helpers. The fix removes the unvalidated header path so session data is only accepted after JWT validation.
Upgrade the @descope/nextjs-sdk library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses the session() or getSession(req) server helpers from @descope/nextjs-sdk/server to make authentication or authorization decisions.
0.0.1 - 0.15.55
Fixed in 0.15.56@descope/nextjs-sdk is vulnerable to Authentication Bypass in versions 0.0.1 - 0.15.55.
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.