{"schemaVersion":3,"id":"CVE-2021-32702","aliases":["GHSA-954c-jjx6-cxv7"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-06-25T16:25:11.000Z","modified":"2024-08-03T23:25:31.131Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","exploitability":4.1,"impact":9.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01403,"percentile":0.72141,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01403},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01403,"percentile":0.72141}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01403,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01403,"percentile":0.72141}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"auth0","product":"nextjs-auth0","name":"nextjs-auth0","label":"nextjs-auth0","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.2","eol":null,"hubHref":"/vendor/auth0/nextjs-auth0"},{"vendor":"@auth0","product":"nextjs-auth0","name":"@auth0/nextjs-auth0","label":"nextjs-auth0","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@auth0/nextjs-auth0","purlType":"npm","versions":[{"text":"< 1.4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7","label":"github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf","label":"github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://www.npmjs.com/package/%40auth0/nextjs-auth0","label":"www.npmjs.com/package/%40auth0/nextjs-auth0","hostname":"www.npmjs.com","tags":["X Refsource MISC"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32702","label":"nvd.nist.gov/vuln/detail/CVE-2021-32702","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://www.npmjs.com/package/@auth0/nextjs-auth0","label":"www.npmjs.com/package/@auth0/nextjs-auth0","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-06-25T16:25:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:25:31.131Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:42:33.557Z","stale":false,"partial":false}}