passport-wsfed-saml2@3.0.7 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.

*