passport-wsfed-saml2@2.1.0 vulnerabilities

SAML2 Protocol and WS-Fed library

Direct Vulnerabilities

Known vulnerabilities in the passport-wsfed-saml2 package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • M
Improper Control of Document Type Definition

passport-wsfed-saml2 is a SAML2 Protocol and WS-Fed library.

Affected versions of this package are vulnerable to Improper Control of Document Type Definition due to improper validation of a SAML signature tag, which leads to a signature relocation attack where the attacker can corrupt one field of data while maintaining the signature valid. This could allow an authenticated attacker to "remove" one group from the assertion or corrupt another field.

How to fix Improper Control of Document Type Definition?

Upgrade passport-wsfed-saml2 to version 3.0.10 or higher.

<3.0.10
  • M
Access Restriction Bypass

passport-wsfed-saml2 is a SAML2 Protocol and WS-Fed library.

Affected versions of this package are vulnerable to Access Restriction Bypass when a remote attacker can bypass WSFed authentication on a website. A successful attack requires that the attacker has an arbitrary IDP-signed assertion.

NOTE Depending on the IDP used, fully unauthenticated attacks (e.g, without access to a valid user) might also be feasible if the generation of a signed message can be triggered.

How to fix Access Restriction Bypass?

A fix was pushed into the master branch but not yet published.

*
  • H
User Impersonation

passport-wsfed-saml2 is a ws-federation protocol + SAML2 tokens authentication provider for Passport.

Affected versons if thus package are vulnerable to User Impersonation. A vulnerability has been discovered in the Auth0 passport-wsfed-saml2 library affecting versions < 3.0.5. This vulnerability allows an attacker to impersonate another user and potentially elevate their privileges if the SAML identity provider does not sign the full SAML response (e.g., only signs the assertion within the response).

How to fix User Impersonation?

Upgrade passport-wsfed-saml2 to version 3.0.5 or higher.

<3.0.5