CVE-2025-67716: @auth0/nextjs auth0 Improper Validation Of Query Parameters Vulnerability

LOW
Advisory Identifier: GHSA-mr6f-h57v-rpj5
CVSS 3.7
CWE-184
Published
Advisory Summary

CVE-2025-67716 is a LOW (CVSS 3.7) improper validation of query parameters vulnerability (CWE-184: Incomplete List of Disallowed Inputs) affecting @auth0/nextjs auth0 libraries in the npm ecosystem. The issue involves improper validation of query parameters in auth0 next.js sdk. Remediation is available by upgrading affected packages to version 4.13.0.

CVE-2025-67716 at a Glance

CVE Identifier CVE-2025-67716
GHSA Identifier GHSA-mr6f-h57v-rpj5
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-184: Incomplete List of Disallowed Inputs
Affected Product @auth0/nextjs auth0
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-67716

To remediate this vulnerability, upgrade all affected @auth0/nextjs auth0 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@auth0/nextjs-auth0 fixed: 4.13.0
npm install @auth0/nextjs-auth0@4.13.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @auth0/nextjs-auth0

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-67716, inspect your project dependencies using npm:

npm ls @auth0/nextjs-auth0

Analyze the terminal output to locate any version of @auth0/nextjs auth0 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.13.0), your application is affected.

Note: The npm ls @auth0/nextjs-auth0 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-184: Incomplete List of Disallowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete. In @auth0/nextjs auth0, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2025-67716 Affected @auth0/nextjs auth0 Versions

1 component(s)
Fixed Versions:
4.13.0
Product / Package Ecosystem Affected Versions Fixed Version
@auth0/nextjs-auth0
npm
≥ 4.9.0
< 4.13.0
4.13.0

References

Frequently Asked Questions

What is CVE-2025-67716?
CVE-2025-67716 is a security vulnerability in @auth0/nextjs auth0 involving Improper Validation of Query Parameters in Auth0 Next.js SDK under CWE-184: Incomplete List of Disallowed Inputs.
Which @auth0/nextjs auth0 versions are affected?
Affected versions include releases prior to 4.13.0 across affected packages: @auth0/nextjs-auth0.
What version fixes CVE-2025-67716?
Upgrading to 4.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @auth0/nextjs-auth0 affected?
Yes, @auth0/nextjs-auth0 is affected in releases prior to 4.13.0. Upgrade your dependency to 4.13.0 or later.
What is the CVSS score of CVE-2025-67716?
CVE-2025-67716 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-67716?
CVE-2025-67716 is classified under CWE-184: Incomplete List of Disallowed Inputs (The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.).
How can I check npm dependencies for CVE-2025-67716?
Run the dependency tree command: 'npm ls @auth0/nextjs-auth0'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mr6f-h57v-rpj5",
  "modified" : "2025-12-11T15:51:53Z",
  "published" : "2025-12-10T21:35:58Z",
  "aliases" : [ "CVE-2025-67716" ],
  "summary" : "Improper Validation of Query Parameters in Auth0 Next.js SDK",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@auth0/nextjs-auth0"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-mr6f-h57v-rpj5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67716"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/auth0/nextjs-auth0/commit/35eb321de3345ccf23e8c0d6f66c9f2f2f57d26c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/auth0/nextjs-auth0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-184" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-10T21:35:58Z",
    "nvd_published_at" : "2025-12-11T01:16:00Z"
  }
}