CVE-2022-25896
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-25896 affects the passport package versions before 0.6.0. The vulnerability was discovered and disclosed on May 20, 2022, and published on June 29, 2022. This security issue involves incorrect session regeneration behavior in the authentication process (NVD, Snyk).

Technical details

The vulnerability is classified as a Session Fixation issue (CWE-384) with a CVSS v3.1 base score of 4.8 (Medium). The technical assessment indicates that when a user logs in or logs out, the session is regenerated instead of being properly closed. The vulnerability has Network attack vector, High attack complexity, requires No privileges, and No user interaction (NVD, Snyk).

Impact

The vulnerability can lead to some loss of confidentiality and availability. While the attacker doesn't have control over what information is obtained, there could be unauthorized access to restricted information. The impact on availability means that performance might be reduced or there could be interruptions in resource availability (Snyk).

Mitigation and workarounds

The vulnerability has been fixed in passport version 0.6.0. Users should upgrade to version 0.6.0 or higher to address this security issue. The fix includes proper session handling during login and logout operations (GitHub PR, Snyk).

Community reactions

The community response highlighted concerns about the breaking changes introduced in version 0.6.0. Several users reported production issues due to the undocumented breaking changes in the session handling behavior. The maintainer later published a detailed explanation of the changes in a Medium blog post to address these concerns (GitHub PR).

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-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

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