{"id":"CVE-2021-32702","details":"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.","aliases":["GHSA-954c-jjx6-cxv7"],"modified":"2026-03-13T22:00:16.441918Z","published":"2021-06-25T17:15:08.383Z","related":["GHSA-954c-jjx6-cxv7"],"references":[{"type":"WEB","url":"https://www.npmjs.com/package/%40auth0/nextjs-auth0"},{"type":"ADVISORY","url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7"},{"type":"FIX","url":"https://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/auth0/nextjs-auth0","events":[{"introduced":"0"},{"fixed":"ae4a7c680cad4f481eb317a910feb9d8205c27dc"},{"fixed":"6996e2528ceed98627caa28abafbc09e90163ccf"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.4.2"}]}}],"versions":["v0.1.0","v0.10.0","v0.11.0","v0.12.0","v0.13.0","v0.15.0","v0.16","v0.3.0","v0.4.0","v0.5.0","v0.6.0","v0.7.0","v0.8.0","v0.9.0","v1.0.0","v1.0.0-beta.0","v1.0.0-beta.1","v1.0.0-beta.2","v1.1.0","v1.2.0","v1.3.0","v1.3.1","v1.4.0","v1.4.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32702.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}