Vulnerabilities in pkg:npm/saml2-js
PACKAGEGHSA-mfcp-34xw-p57x is a MODERATE (CVSS 6.8) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Saml2 js libraries in the npm ecosystem. The issue involves authentication bypass in saml2-js. Remediation is available by upgrading affected packages to version 2.0.5.
pkg:npm/saml2-js
Vulnerability advisories affecting package pkg:npm/saml2-js. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mfcp-34xw-p57x | - | MODERATE | Authentication Bypass in saml2-js |
| GHSA-5p5w-j3g7-w4wv | CVE-2017-11429 | MODERATE | Authentication bypass via incorrect XML canonicalization and DOM traversal in saml2-js |
GHSA-mfcp-34xw-p57x at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).
How to Fix GHSA-mfcp-34xw-p57x
To remediate this vulnerability, upgrade all affected Saml2 js 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 saml2-js@2.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls saml2-js
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-mfcp-34xw-p57x, inspect your project dependencies using npm:
npm ls saml2-js
Analyze the terminal output to locate any version of Saml2 js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), your application is affected.
Note: The npm ls saml2-js 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 Saml2 js, 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-mfcp-34xw-p57x Affected Saml2 js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
saml2-js
|
npm |
< 2.0.5
|
2.0.5
|
References
Frequently Asked Questions
What is GHSA-mfcp-34xw-p57x?
Which Saml2 js versions are affected?
What version fixes GHSA-mfcp-34xw-p57x?
Is saml2-js affected?
What is the CVSS score of GHSA-mfcp-34xw-p57x?
What CWE is associated with GHSA-mfcp-34xw-p57x?
How can I check npm dependencies for GHSA-mfcp-34xw-p57x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mfcp-34xw-p57x",
"modified" : "2021-09-29T20:12:42Z",
"published" : "2020-09-03T21:20:52Z",
"aliases" : [ ],
"summary" : "Authentication Bypass in saml2-js",
"details" : "Versions of `saml2-js` prior to 2.0.5 are vulnerable to an Authentication Bypass. The package fails to enforce the assertion conditions for encrypted assertions, which may allow an attacker to reuse encrypted assertion tokens indefinitely.\n\n\n## Recommendation\n\nUpgrade to version 2.0.5 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "saml2-js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Clever/saml2/pull/190"
}, {
"type" : "WEB",
"url" : "https://github.com/Clever/saml2/commit/ae0da4d0a0ea682a737be481e3bd78798be405c0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Clever/saml2"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-SAML2JS-474637"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1222"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:51:27Z",
"nvd_published_at" : null
}
}