GHSA-5wrg-8fxp-cx9r: Passport wsfed saml2 Passport-wsfed-saml2 Signature Bypass Vulnerability Vulnerability
HIGHGHSA-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
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.
npm install passport-wsfed-saml2@3.0.10
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
GHSA-5wrg-8fxp-cx9r Affected Passport wsfed saml2 Versions
1 component(s)| 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?
Which Passport wsfed saml2 versions are affected?
What version fixes GHSA-5wrg-8fxp-cx9r?
Is passport-wsfed-saml2 affected?
What CWE is associated with GHSA-5wrg-8fxp-cx9r?
How can I check npm dependencies for GHSA-5wrg-8fxp-cx9r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}