CVE-2022-23505
JSON

5.3medium

Passport-wsfed-saml2 vulnerable to Authentication Bypass for WSFed authentication

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.83% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-ppjq-qxhx-m25f

Description

Passport-wsfed-saml2 is a ws-federation protocol and SAML2 tokens authentication provider for Passport. In versions prior to 4.6.3, a remote attacker may be able to bypass WSFed authentication on a website using passport-wsfed-saml2. A successful attack requires that the attacker is in possession of an arbitrary IDP signed assertion. 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. This issue is patched in version 4.6.3. Use of SAML2 authentication instead of WSFed is a workaround.

Affected

Product or packageVersionsReported by
auth0 passport-wsfed-saml2< 4.6.3, up to 4.6.2CVE List, NVD
passport-wsfed-saml2 (npm)before 4.6.3GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-287

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Passport-wsfed-saml2 is a ws-federation protocol and SAML2 tokens authentication provider for Passport. In versions prior to 4.6.3, a remote attacker may be able to bypass WSFed authentication on a website using passport-wsfed-saml2. A successful attack requires that the attacker is in possession of an arbitrary IDP signed assertion. 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. This issue is patched in version 4.6.3. Use of SAML2 authentication instead of WSFed is a workaround.

GitHub Advisory Database

Overview

A remote attacker can bypass WSFed authentication on a website using passport-wsfed-saml2. A successful attack requires that the attacker is in possession of an arbitrary IDP signed WSFed assertion. 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.

Am I affected?

You are affected if you are using WSFed protocol with the passport-wsfed-saml2 library versions < 4.6.3. SAML2 protocol is not affected.

How do I fix it?

Upgrade the library to version 4.6.3.

Will the fix impact my users?

No, the fix will not impact your users.

NVD (es)

Passport-wsfed-saml2 es un protocolo ws-federation y un proveedor de autenticación de tokens SAML2 para Passport. En versiones anteriores a la 4.6.3, un atacante remoto podría eludir la autenticación WSFed en un sitio web utilizando passport-wsfed-saml2. Un ataque exitoso requiere que el atacante esté en posesión de una afirmación arbitraria firmada por un IDP. Dependiendo del IDP utilizado, los ataques totalmente no autenticados (por ejemplo, sin acceso a un usuario válido) también podrían ser factibles si se puede activar la generación de un mensaje firmado. Este problema se solucionó en la versión 4.6.3. El uso de la autenticación SAML2 en lugar de WSFed es un workaround.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-23505 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-ppjq-qxhx-m25f changed 2023-11-08CC-BY-4.0
NVDCVE-2022-23505 changed 2026-06-17Public domain