{"id":"CVE-2021-43812","published":"2021-12-16T18:20:12Z","modified":"2024-08-04T04:03:08Z","title":"Open redirect in nextjs-auth0","vendor":"auth0","product":"nextjs-auth0","tier":"tail","description":{"text":"The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions before 1.6.2 do not filter out certain returnTo parameter values from the login url, which expose the application to an open redirect vulnerability. Users are advised to upgrade as soon as possible. There are no known workarounds for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.53225,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-2mqv-4j3r-vjvp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/auth0/nextjs-auth0/commit/0bbd9f8a0c93af51f607f28633b5fb18c5e48ad6","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":10.64},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"auth0","affectedVersions":[{"vendor":"auth0","product":"nextjs-auth0","versions":["< 1.6.2"]}],"affected":[{"ecosystem":"npm","package":"@auth0/nextjs-auth0","vulnerableRanges":["<1.6.2"],"patched":["1.6.2"],"from":["GHSA-2mqv-4j3r-vjvp"],"provenance":"source"}],"summary":{"text":"The open redirect flaw lives in the nextjs-auth0 library from Auth0, the Auth0 Next.js SDK used for user authentication in Next.js applications, where versions before 1.6.2 fail to filter certain returnTo parameter values in the login URL. An attacker with low-privilege access (authentication required) can craft a login URL that redirects users to an untrusted site over the network, with no user interaction needed and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:43Z"},"euvd":{"id":"EUVD-2021-2425","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-auth0-nextjs-auth0-cve-2021-32702","parents":[{"from":"CVE-2021-32702","to":"CVE-2021-43812","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@auth0/nextjs-auth0","fromFixed":"1.4.2","toFixed":"1.6.2","daysApart":174},{"kind":"same-code","provenance":"machine","files":["src/handlers/login.ts"],"commits":["https://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf","https://github.com/auth0/nextjs-auth0/commit/0bbd9f8a0c93af51f607f28633b5fb18c5e48ad6"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-32702","published":"2021-06-25","fixed":"1.4.2","kev":false},{"cve":"CVE-2021-43812","published":"2021-12-16","fixed":"1.6.2","kev":false},{"cve":"CVE-2025-46344","published":"2025-04-29","fixed":"4.5.1","kev":false},{"cve":"CVE-2025-48947","published":"2025-06-04","fixed":"4.6.1","kev":false},{"cve":"CVE-2025-67490","published":"2025-12-10","fixed":"4.12.1","kev":false}],"package":"npm:@auth0/nextjs-auth0"}}