GHSA-5wrg-8fxp-cx9r: Passport wsfed saml2 Passport-wsfed-saml2 Signature Bypass Vulnerability Vulnerability

HIGH
Published
Advisory Summary

GHSA-5wrg-8fxp-cx9r is a HIGH passport-wsfed-saml2 signature bypass vulnerability vulnerability (General Security Weakness) affecting Passport wsfed saml2 libraries in the npm ecosystem. The issue involves passport-wsfed-saml2 signature bypass vulnerability. Remediation is available by upgrading affected packages to version 3.0.10.

GHSA-5wrg-8fxp-cx9r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5wrg-8fxp-cx9r
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Passport wsfed saml2
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-5wrg-8fxp-cx9r

To remediate this vulnerability, upgrade all affected Passport wsfed saml2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

passport-wsfed-saml2 fixed: 3.0.10
npm install passport-wsfed-saml2@3.0.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls passport-wsfed-saml2

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-5wrg-8fxp-cx9r, inspect your project dependencies using npm:

npm ls passport-wsfed-saml2

Analyze the terminal output to locate any version of Passport wsfed saml2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.10), your application is affected.

Note: The npm ls passport-wsfed-saml2 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Passport wsfed saml2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Information Please note that this is not a new disclosure, and is previously reported in our [SECURITY-NOTICE.md](https://github.com/auth0/passport-wsfed-saml2/commit/520b9fc0bb4249ce83bec47e30153419f086ab70 ) which we removed in favor of github advisory. # Overview A vulnerability was found in the validation of a SAML signature. The validation doesn't ensure that the "Signature" tag is at the proper location inside an "Assertion" tag. This 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 of an assertion. # Am I affected? You are affected if you are using the passport-wsfed-saml2 library to version < 3.0.10 # How do I fix it? You may fix this issue by upgrading passport-wsfed-saml2 library to version 3.0.10 or above. # Will the fix impact my users? This fix patches the library that your application runs, but will not impact your users, their current state, or any existing sessions.

GHSA-5wrg-8fxp-cx9r Affected Passport wsfed saml2 Versions

1 component(s)
Fixed Versions:
3.0.10
Product / Package Ecosystem Affected Versions Fixed Version
passport-wsfed-saml2
npm
< 3.0.10
3.0.10

References

Frequently Asked Questions

What is GHSA-5wrg-8fxp-cx9r?
GHSA-5wrg-8fxp-cx9r is a security vulnerability in Passport wsfed saml2 involving passport-wsfed-saml2 Signature Bypass vulnerability under General Security Weakness.
Which Passport wsfed saml2 versions are affected?
Affected versions include releases prior to 3.0.10 across affected packages: passport-wsfed-saml2.
What version fixes GHSA-5wrg-8fxp-cx9r?
Upgrading to 3.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is passport-wsfed-saml2 affected?
Yes, passport-wsfed-saml2 is affected in releases prior to 3.0.10. Upgrade your dependency to 3.0.10 or later.
What CWE is associated with GHSA-5wrg-8fxp-cx9r?
GHSA-5wrg-8fxp-cx9r is classified under General Security Weakness.
How can I check npm dependencies for GHSA-5wrg-8fxp-cx9r?
Run the dependency tree command: 'npm ls passport-wsfed-saml2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5wrg-8fxp-cx9r",
  "modified" : "2023-06-21T22:06:22Z",
  "published" : "2023-06-21T22:06:22Z",
  "aliases" : [ ],
  "summary" : "passport-wsfed-saml2 Signature Bypass vulnerability",
  "details" : "## Information\nPlease note that this is not a new disclosure, and is previously reported in our [SECURITY-NOTICE.md](https://github.com/auth0/passport-wsfed-saml2/commit/520b9fc0bb4249ce83bec47e30153419f086ab70\n) which we removed in favor of github advisory. \n\n# Overview\n\nA vulnerability was found in the validation of a SAML signature. The validation doesn't ensure that the \"Signature\" tag is at the proper location inside an \"Assertion\" tag. This 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 of an assertion.\n\n# Am I affected?\n\nYou are affected if you are using the passport-wsfed-saml2 library to version < 3.0.10\n\n# How do I fix it?\n\nYou may fix this issue by upgrading passport-wsfed-saml2 library to version 3.0.10 or above. \n\n# Will the fix impact my users?\n\nThis fix patches the library that your application runs, but will not impact your users, their current state, or any existing sessions.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "passport-wsfed-saml2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-5wrg-8fxp-cx9r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/auth0/passport-wsfed-saml2/pull/79"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/auth0/passport-wsfed-saml2/commit/f75211d42d2586a0d24a9da29ba8590e42363500"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/auth0/passport-wsfed-saml2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-21T22:06:22Z",
    "nvd_published_at" : null
  }
}