CVE-2022-23505: Passport wsfed saml2 Authentication Bypass Vulnerability
MODERATECVE-2022-23505 is a MODERATE (CVSS 5.3) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Passport wsfed saml2 libraries in the npm ecosystem. The issue involves authentication bypass for passport-wsfed-saml2. Remediation is available by upgrading affected packages to version 4.6.3.
CVE-2022-23505 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2022-23505
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@4.6.3
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 CVE-2022-23505, 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 4.6.3), 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 CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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
CVE-2022-23505 Affected Passport wsfed saml2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
passport-wsfed-saml2
|
npm |
< 4.6.3
|
4.6.3
|
References
Frequently Asked Questions
What is CVE-2022-23505?
Which Passport wsfed saml2 versions are affected?
What version fixes CVE-2022-23505?
Is passport-wsfed-saml2 affected?
What is the CVSS score of CVE-2022-23505?
What CWE is associated with CVE-2022-23505?
How can I check npm dependencies for CVE-2022-23505?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ppjq-qxhx-m25f",
"modified" : "2022-12-15T21:59:51Z",
"published" : "2022-12-13T17:16:36Z",
"aliases" : [ "CVE-2022-23505" ],
"summary" : "Authentication Bypass for passport-wsfed-saml2",
"details" : "# Overview\nA 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.\n\n# Am I affected?\nYou are affected if you are using WSFed protocol with the passport-wsfed-saml2 library versions < 4.6.3. \nSAML2 protocol is not affected. \n\n# How do I fix it?\nUpgrade the library to version 4.6.3.\n\n# Will the fix impact my users?\nNo, the fix will not impact your users. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "passport-wsfed-saml2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.6.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-ppjq-qxhx-m25f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23505"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/passport-wsfed-saml2/pull/179"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/auth0/passport-wsfed-saml2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-13T17:16:36Z",
"nvd_published_at" : "2022-12-13T08:15:00Z"
}
}