Medium severity · published Jun 25, 2021
CVE-2021-32702
Reflected XSS from the callback handler's error query parameter
6.1
CVSS
1.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 72% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NE
nextjs-auth0 · auth0
< 1.4.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-32702
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-32702
Patch
https://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf
Third Party Advisory
https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7
www.npmjs.com
https://www.npmjs.com/package/%40auth0/nextjs-auth0
More from nextjs-auth0
7.7
CVE-2025-48947
NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies
6.1
CVE-2026-107369
Improper Validation of Post-Login Redirect URL in nextjs-auth0
6.1
CVE-2021-43812
Open redirect in nextjs-auth0
5.7
CVE-2025-67716
Auth0 Next.js SDK has Improper Validation of Query Parameters
5.4
CVE-2026-40155
Auth0 Next.js SDK has Improper Proxy Cache Lookup
