{"id":"CVE-2021-43812","aliases":["CVE-2021-43812","GHSA-2mqv-4j3r-vjvp"],"related":[],"kind":"vulnerability","state":"published","title":"Open redirect in nextjs-auth0","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Overview\n\nVersions `<=1.6.1` do not filter out certain `returnTo` parameter values from the login url, which expose the application to an open redirect vulnerability.\n\n### Am I affected?\nYou are affected by this vulnerability if you are using `@auth0/nextjs-auth0` version `<=1.6.1`.\n\n### How to fix that?\nUpgrade to version `>=1.6.2`\n\n### Will this update impact my users?\nThe fix provided in the patch will not affect your users.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El SDK de Auth0 Next.js es una biblioteca para implementar la autenticación de usuarios en las aplicaciones Next.js. Las versiones anteriores a 1.6.2, no filtran determinados valores del parámetro returnTo de la url de inicio de sesión, lo que expone la aplicación a una vulnerabilidad de redirección abierta. Se recomienda a usuarios que actualicen lo antes posible. No se presentan soluciones conocidas para este problema","source":"nvd"}],"published":"2021-12-16T18:20:12.000Z","modified":"2026-07-08T06:28:49.665Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 1.6.2","status":"affected"}],"vendor":"auth0","product":"nextjs-auth0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.6.2"}],"ecosystem":"npm","package":"@auth0/nextjs-auth0","purl":"pkg:npm/%40auth0/nextjs-auth0","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.2"}],"vendor":"auth0","product":"nextjs-auth0","cpe":"cpe:2.3:a:auth0:nextjs-auth0:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-2mqv-4j3r-vjvp","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/nextjs-auth0/commit/0bbd9f8a0c93af51f607f28633b5fb18c5e48ad6","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43812","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/nextjs-auth0","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43812","url":"https://www.cve.org/CVERecord?id=CVE-2021-43812","licence":"CVE Terms of Use","modified":"2024-08-04T04:03:08.682Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2mqv-4j3r-vjvp","url":"https://github.com/advisories/GHSA-2mqv-4j3r-vjvp","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:49.665Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43812","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43812","licence":"Public domain","modified":"2026-06-17T04:11:29.333Z"}],"updatedAt":"2026-11-25T22:24:36.312Z","epss":{"score":0.00677,"percentile":0.53564,"date":"2026-12-01T12:00:22.000Z"}}