Auth0 Next.js SDK
cpe:2.3:a:auth0:nextjs-auth0:*:*:*:*:node.js:*:*
- <= 1.4.1
A reflected cross-site scripting vulnerability has been identified in the Auth0 Next.js SDK, specifically in versions prior to and including 1.4.1. The issue arises in the callback handler, where an XSS payload can be injected through the 'error' query parameter. This payload is then processed as an error message, allowing an attacker to execute arbitrary code. Users of the SDK are affected unless they have implemented custom error handling that excludes the error message from being returned in an HTML response.
Exploitation of this vulnerability allows for reflected cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.
To reproduce this vulnerability, use the Auth0 Next.js SDK version 1.4.1 or lower. Navigate to the callback URL of the application and include an XSS payload in the 'error' query parameter. The injected script will be executed, demonstrating the cross-site scripting vulnerability.
Upgrade to Auth0 Next.js SDK version 1.4.2 or later, where this vulnerability has been patched by adding basic HTML escaping to the error message. Users should ensure that any custom error handling also properly escapes error messages before rendering.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.