5.7medium
Auth0 Next.js SDK has Improper Validation of Query Parameters
- Severity
- 5.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.47% (higher than 33% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mr6f-h57v-rpj5
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| auth0 nextjs-auth0 | >= 4.9.0, < 4.13.0, from 4.9.0 before 4.12.1 | CVE List, NVD |
| @auth0/nextjs-auth0 (npm) | from 4.9.0 before 4.13.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Description
An 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
Am I Affected?
You are affected if you meet the following preconditions:
- Applications using the auth0/nextjs-auth0 SDK version prior to 4.13.0
Affected product and versions
Auth0/nextjs-auth0 versions >= 4.9.0 and < 4.13.0
Resolution
Upgrade Auth0/nextjs-auth0 version to v4.13.0
Acknowledgements
Okta would like to thank Joshua Rogers (MegaManSec) for their discovery and responsible disclosure.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67716 changed 2025-12-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mr6f-h57v-rpj5 changed 2025-12-11 | CC-BY-4.0 |
| NVD | CVE-2025-67716 changed 2026-10-14 | Public domain |