LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32702: Reflected XSS from the callback handler's error query parameter

The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions before and including `1.4.1` are vulnerable to reflected XSS. An attacker can execute arbitrary code by providing an XSS payload in the `error` query parameter which is then processed by the callback handler as an error message. You are affected by this vulnerability if you are using `@auth0/nextjs-auth0` version `1.4.1` or lower **unless** you are using custom error handling that does not return the error message in an HTML response. Upgrade to version `1.4.1` to resolve. The fix adds basic HTML escaping to the error message and it should not impact your users.

HighCVSS 8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw affects Next.js applications using vulnerable Auth0 Next.js SDK versions. A malicious link could cause the login callback error page to render attacker-controlled script in a user’s browser. Business risk is account-facing web application compromise, especially where authentication flows are high trust.

Executive priority

Treat as high priority for affected customer-facing applications. Remediation is dependency-focused and should be scheduled promptly, with faster action for internet-facing authentication flows or high-value user populations.

Technical view

CVE-2021-32702 is reflected XSS in @auth0/nextjs-auth0 callback error handling. Vulnerable versions process the error query parameter into an HTML response without adequate escaping. The CVSS 3.1 score is 8.0 with network attack vector, no privileges required, user interaction required, and changed scope.

Likely exposure

Exposure is limited to applications using @auth0/nextjs-auth0 versions before 1.4.2, according to the affected range, unless custom error handling prevents returning the error message in HTML.

Exploitation context

The source bundle does not cite active exploitation and KEV is false. Exploitation requires user interaction and successful delivery of a crafted callback URL. The issue is still important because authentication pages are trusted and often reachable from the internet.

Researcher notes

The primary uncertainty is version wording: the description says versions through 1.4.1 are vulnerable, while one sentence says upgrade to 1.4.1. The affected range states versions below 1.4.2, so validate against Auth0’s advisory before closure.

Mitigation direction

  • Upgrade @auth0/nextjs-auth0 to a non-affected version per Auth0 guidance.
  • Confirm the exact patched version because the bundle contains conflicting upgrade wording.
  • Use custom error handling that does not render raw error messages in HTML.
  • Prioritize internet-facing Next.js applications with Auth0 login callbacks.

Validation and detection

  • Inventory package-lock, yarn.lock, pnpm-lock, and deployed SBOMs for @auth0/nextjs-auth0 versions.
  • Identify applications exposing the Auth0 Next.js callback handler.
  • Review custom callback error handling for HTML rendering of untrusted error text.
  • Confirm dependency upgrades are present in deployed artifacts, not only source control.
  • Check application logs for unusual callback error-parameter activity without attempting reproduction.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32702 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N1.65.8Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8High
CVSS 3.1 vector shape for CVE-2021-32702Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
auth0nextjs-auth0< 1.4.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.