{"id":"CVE-2025-67716","aliases":["CVE-2025-67716","GHSA-mr6f-h57v-rpj5"],"related":[],"kind":"vulnerability","state":"published","title":"Auth0 Next.js SDK has Improper Validation of Query Parameters","summary":"The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions 4.9.0 through 4.12.1 contain an input-validation flaw in the returnTo parameter, which could allow attackers to inject unintended OAuth query parameters into the Auth0 authorization request. Successful exploitation may result in tokens being issued with unintended parameters. This issue is fixed in version 4.13.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions 4.9.0 through 4.12.1 contain an input-validation flaw in the returnTo parameter, which could allow attackers to inject unintended OAuth query parameters into the Auth0 authorization request. Successful exploitation may result in tokens being issued with unintended parameters. This issue is fixed in version 4.13.0.","source":"cvelist"},{"lang":"en","text":"### Description\nAn input-validation flaw in the returnTo parameter in the Auth0 Next.js SDK could allow attackers to inject unintended OAuth query parameters into the Auth0 authorization request. Successful exploitation may result in tokens being issued with unintended parameters\n\n### Am I Affected?\nYou are affected if you meet the following preconditions:\n- Applications using the auth0/nextjs-auth0 SDK version prior to 4.13.0\n\n### Affected product and versions\nAuth0/nextjs-auth0 versions >= 4.9.0 and < 4.13.0\n\n\n### Resolution\nUpgrade Auth0/nextjs-auth0 version to v4.13.0\n\n### Acknowledgements\nOkta would like to thank Joshua Rogers (MegaManSec) for their discovery and responsible disclosure.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El SDK de Auth0 para Next.js es una biblioteca para implementar la autenticación de usuarios en aplicaciones Next.js. Las versiones 4.9.0 a la 4.12.1 contienen una falla de validación de entrada en el parámetro returnTo, lo que podría permitir a los atacantes inyectar parámetros de consulta OAuth no deseados en la solicitud de autorización de Auth0. La explotación exitosa puede resultar en la emisión de tokens con parámetros no deseados. Este problema está corregido en la versión 4.13.0.","source":"nvd"}],"published":"2025-12-10T21:35:58.000Z","modified":"2026-10-14T20:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"version":">= 4.9.0, < 4.13.0","status":"affected"}],"vendor":"auth0","product":"nextjs-auth0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.9.0","status":"affected","fixed":"4.13.0"}],"ecosystem":"npm","package":"@auth0/nextjs-auth0","purl":"pkg:npm/%40auth0/nextjs-auth0","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.9.0","fixed":"4.12.1"}],"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-mr6f-h57v-rpj5","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/nextjs-auth0/commit/35eb321de3345ccf23e8c0d6f66c9f2f2f57d26c","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67716","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/nextjs-auth0","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-12-11T16:09:01.167Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67716","url":"https://www.cve.org/CVERecord?id=CVE-2025-67716","licence":"CVE Terms of Use","modified":"2025-12-11T16:09:34.320Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mr6f-h57v-rpj5","url":"https://github.com/advisories/GHSA-mr6f-h57v-rpj5","licence":"CC-BY-4.0","modified":"2025-12-11T16:21:52.892Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67716","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67716","licence":"Public domain","modified":"2026-10-14T20:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:09.214Z","epss":{"score":0.00474,"percentile":0.33306,"date":"2026-11-30T12:00:22.000Z"}}