CVE-2025-67716: Improper Validation of Query Parameters in Auth0 Next.js SDK
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…
Published Dec 10, 2025 · Updated Dec 11, 2025
Affected packages
@auth0/nextjs-auth0
- Ecosystem
- npm
- Affected
- >= 4.9.0, < 4.13.0
- Fixed in
- 4.13.0
- Check
npm ls @auth0/nextjs-auth0
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to MegaManSec.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-40155
Auth0 Next.js SDK has Improper Proxy Cache Lookup
medium5.4Apr 21, 2026CVE-2025-67490
Improper Request Caching Lookup in the Auth0 Next.js SDK
medium5.4Dec 10, 2025CVE-2025-48947
NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies
high7.7Jun 4, 2025CVE-2025-46344
Auth0 NextJS SDK v4 Missing Session Invalidation
medium4.9Apr 29, 2025
