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

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2021-06-25T16:25:11.000Z
- Modified: 2026-07-08T06:29:07.810Z
- Also known as: GHSA-954c-jjx6-cxv7
- Weaknesses: CWE-79
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- auth0 nextjs-auth0: < 1.4.2; before 1.4.2
- @auth0/nextjs-auth0 (npm): before 1.4.2

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7> (third-party-advisory, web)
- <https://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/%40auth0/nextjs-auth0>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32702> (advisory)
- <https://www.npmjs.com/package/@auth0/nextjs-auth0> (web)

## Sources

- CVE List: [CVE-2021-32702](https://www.cve.org/CVERecord?id=CVE-2021-32702), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-954c-jjx6-cxv7](https://github.com/advisories/GHSA-954c-jjx6-cxv7), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32702](https://nvd.nist.gov/vuln/detail/CVE-2021-32702), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32702 · Whole record: https://cve.day/CVE-2021-32702.json · Rebuilt by cve.day 2026-11-25T22:58:02.322Z
