CVE-2022-39299

Summary

CVECVE-2022-39299
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-10-12 21:15:00 UTC
Updated2023-01-20 14:24:00 UTC
DescriptionPassport-SAML is a SAML 2.0 authentication provider for Passport, the Node.js authentication library. A remote attacker may be able to bypass SAML authentication on a website using passport-saml. A successful attack requires that the attacker is in possession of an arbitrary IDP signed XML element. Depending on the IDP used, fully unauthenticated attacks (e.g without access to a valid user) might also be feasible if generation of a signed message can be triggered. Users should upgrade to passport-saml version 3.2.2 or newer. The issue was also present in the beta releases of `node-saml` before version 4.0.0-beta.5. If you cannot upgrade, disabling SAML authentication may be done as a workaround.

Risk And Classification

Problem Types: CWE-347

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Passport-saml Project Passport-saml All All All All
Application Passport-saml Project Passport-saml 4.0.0 beta1 All All
Application Passport-saml Project Passport-saml 4.0.0 beta2 All All
Application Passport-saml Project Passport-saml 4.0.0 beta3 All All
Application Passport-saml Project Passport-saml 4.0.0 beta4 All All

References

ReferenceSourceLinkTags
Merge pull request from GHSA-m974-647v-whv7 · node-saml/passport-saml@8b7e3f5 · GitHub MISC github.com
Node-saml Root Element Signature Bypass ≈ Packet Storm MISC packetstormsecurity.com
Signature bypass via multiple root elements · Advisory · node-saml/passport-saml · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 181457 Debian Security Update for node-xmldom (DLA 3260-1)
  • 377811 Node-saml/passport-saml NPM Package Authentication Bypass Vulnerability (GHSA-m974-647v-whv7)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report