Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-31093— Improper Handling of `callbackUrl` parameter in next-auth

Quick assessment

Affected
nextauthjs next-auth
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ZEIT Next.js是ZEIT公司的一款基于Vue.js、Node.js、Webpack和Babel.js的开源Web应用框架。NextAuth.js是 Next.js 的身份验证。 Next.js NextAuth.js 3.29.5 之前版本和 4.5.0 之前版本存在代码问题漏洞,该漏洞源于 NextAuth.js 组件的 callbackUrl 参数缺乏验证,可能导致 API 路由处理程序超时并登陆失败。

CVSS 7.5 · High EPSS 1.71% · P77
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-31093

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper Handling of `callbackUrl` parameter in next-auth
Source: CVE Program / CVE List V5
Vulnerability Description
NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the **API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and 4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced Initialization. Please see the documentation for more.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对因果或异常条件的不恰当检查
Source: CVE Program / CVE List V5
Vulnerability Title
ZEIT Next.js 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ZEIT Next.js是ZEIT公司的一款基于Vue.js、Node.js、Webpack和Babel.js的开源Web应用框架。NextAuth.js是 Next.js 的身份验证。 Next.js NextAuth.js 3.29.5 之前版本和 4.5.0 之前版本存在代码问题漏洞,该漏洞源于 NextAuth.js 组件的 callbackUrl 参数缺乏验证,可能导致 API 路由处理程序超时并登陆失败。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nextauthjs next-auth < 3.29.5 -

II. Public POCs for CVE-2022-31093

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-31093

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-31093 (2)

Vendor Advisories for CVE-2022-31093 (1)

Other References for CVE-2022-31093 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-31093

No comments yet


Leave a comment