Wiz Agents & Workflows are here

CVE-2022-24858
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-24858 is a high-severity vulnerability affecting the next-auth library versions prior to 3.29.2 and 4.3.2. The vulnerability was discovered and reported on April 6th, 2022, with a patch being produced within a few days. The issue involves the default redirect callback being vulnerable to open redirects (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-601 (Open Redirect). The issue exists in the default redirect callback functionality where the URL validation was insufficient, potentially allowing malicious redirects. The vulnerability affects both next-auth v3 users before version 3.29.2 and v4 users before version 4.3.2 (GitHub Advisory).

Impact

If exploited, this vulnerability could allow attackers to perform open redirect attacks, potentially leading users to malicious websites through the authentication flow (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 3.29.2 and 4.3.2. Users are recommended to upgrade to these versions or later. For those unable to upgrade immediately, a workaround is available by implementing a custom redirect callback that validates the URL origin against the baseUrl (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34156CRITICAL9.9
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-javascript
NoYesMar 30, 2026
CVE-2026-34363HIGH8.2
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026
CVE-2026-33949HIGH8.1
  • JavaScriptJavaScript
  • @tinacms/graphql
NoYesMar 30, 2026
CVE-2026-34043MEDIUM5.9
  • JavaScriptJavaScript
  • serialize-javascript
NoYesMar 31, 2026
CVE-2026-34373MEDIUM5.3
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management