---
title: "CVE-2022-31127: nextauthjs next-auth Vulnerability"
publisher: SpecStream
source: "CVE Program (CVEProject cvelistV5)"
source_url: "https://github.com/CVEProject/cvelistV5"
---

# CVE-2022-31127: nextauthjs next-auth Vulnerability

SpecStream dataset, built from [CVE Program (CVEProject cvelistV5)](https://github.com/CVEProject/cvelistV5), updated December 6, 2026.

CVE-2022-31127 is a published software vulnerability affecting nextauthjs next-auth. CVSS base score: 7.1 (HIGH). Published July 6, 2022 by GitHub\_M. NextAuth.js is a complete open source authentication solution for Next.js applications. An attacker can pass a compromised input to the e-mail \[signin endpoint\]( that contains some malicious HTML, tricking the e-mail server to send it to the user, so they can perform a phishing attack. Eg.: \<a.

[CVE Vulnerabilities](/data/cve)

SpecStream is the live web data engine for teams and agents.

- CVE ID: CVE-2022-31127
- Status: Published
- Affected vendor: nextauthjs
- Affected product: next-auth
- Assigner CNA: GitHub\_M
- Published date: July 6, 2022
- Last updated: April 22, 2025
- CVSS base score: 7.1 (HIGH)
- CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Weakness (CWE): CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

## Vulnerability data and live monitoring

Query CVE feeds, affected software packages and severity updates through the SpecStream API or export structured CSV files.

- [https://specstream.ai/data/cve](https://specstream.ai/data/cve)
- [https://specstream.ai/signup?src=cve-vulnerabilities](https://specstream.ai/signup?src=cve-vulnerabilities)

CVE Terms of Use (Public Vulnerability Records).

## Access via API, MCP, or CSV

Query live web and register data via the SpecStream Search API ($1 per 1,000 fast searches), Extract API ($0.80 per 1,000 Markdown pages), or MCP server (`npx -y @specstream/mcp-server`). Start with [$2 free API credit (no card)](https://specstream.ai/signup) or unlock 5,000 CSV rows/mo plus $49 API credit with the [Monthly Pro Pass ($49/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter).

Free to quote with credit and a link. Copying in bulk needs a [data licence](https://specstream.ai/data/licence).

## Business lists in the United States

- [Hydraulic repair companies in the United States](https://specstream.ai/data/businesses/hydraulic-repair-companies/united-states)
- [Dumpster rental companies in the United States](https://specstream.ai/data/businesses/dumpster-rental-companies/united-states)
- [Bathtub and sink repair companies in the United States](https://specstream.ai/data/businesses/bathtub-and-sink-repair-companies/united-states)
- [Truck rental companies in the United States](https://specstream.ai/data/businesses/truck-rental-companies/united-states)
- [Preventive medicine practices in the United States](https://specstream.ai/data/businesses/preventive-medicine-practices/united-states)
- [Land surveyors in the United States](https://specstream.ai/data/businesses/land-surveyors/united-states)

## Download verified CSV lists

- [Browse all NVD CVE vulnerability CSV lists ($15 to $49 CSV)](https://specstream.ai/data/cve-lists)
