CVE-2023-29019
JavaScript vulnerability analysis and mitigation

Overview

CVE-2023-29019 affects @fastify/passport, a port of the passport authentication library for the Fastify ecosystem. The vulnerability was discovered and disclosed in April 2023, impacting versions <=1.0.1 and versions 2.0.0 through 2.2.0. This security issue affects applications using @fastify/passport in combination with @fastify/session as the underlying session management mechanism (GitHub Advisory).

Technical details

The vulnerability is classified as a session fixation attack with a CVSS v3.1 base score of 8.1 (HIGH), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N. The core issue lies in how the application manages session IDs during authentication - when executing the authenticate function, the sessionId is preserved between the pre-login and authenticated session states (GitHub Advisory, NVD).

Impact

The vulnerability allows network and same-site attackers to hijack valid user sessions. An attacker can establish a legitimate session ID, trick a victim into authenticating with that session ID, and then hijack the user-validated session using the known session ID. This can lead to unauthorized access to user accounts and potential exposure of sensitive information (GitHub Advisory, OWASP).

Mitigation and workarounds

The vulnerability has been patched in versions >=1.1.0 <2.0.0 and >=2.3.0. The fix involves regenerating the sessionId upon login, which prevents attacker-controlled pre-session cookies from being upgraded to authenticated sessions. Users are strongly advised to upgrade to the patched versions as there are no known workarounds for this vulnerability (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-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 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