CVE-2022-39299
JavaScript vulnerability analysis and mitigation

Overview

A critical security vulnerability (CVE-2022-39299) was discovered in passport-saml, affecting versions prior to 3.2.2 and node-saml versions before 4.0.0-beta.5. The vulnerability allows remote attackers to potentially bypass SAML authentication on websites implementing these packages. The issue was disclosed on October 11, 2022, and affects multiple related packages including @node-saml/node-saml, @node-saml/passport-saml, node-saml, and passport-saml (GitHub Advisory).

Technical details

The vulnerability stems from an implementation flaw that incorrectly handles XML documents with multiple root elements. This breaks the fundamental assumption that there should only be a single root node in the XML tree. The vulnerability has been assigned a High severity rating, indicating its significant potential impact on affected systems (GitHub Advisory).

Impact

The vulnerability enables remote attackers to bypass SAML authentication mechanisms on affected websites. The attack can be executed if the attacker possesses an arbitrary IDP signed XML element. In some cases, depending on the Identity Provider (IDP) configuration, completely unauthenticated attacks might be possible if the generation of a signed message can be triggered (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to upgrade to passport-saml version 3.2.2 or newer to address this vulnerability. For those using beta releases of node-saml, upgrading to version 4.0.0-beta.5 or later is recommended. If immediate patching is not possible, the only workaround is to disable SAML authentication entirely (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-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 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