GitHub Advisoryadvisory · npm
GHSA-5379-r78w-42h2 Unlimited transforms allowed for signed nodes
MEDIUM
Official page ↗
- Aliases
- CVE-2021-39171
- Ecosystem
- npm
- Packages
- passport-saml
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-400
- Reviewed
- 2021-08-27
Affected packages
• npm passport-saml: < 3.1.0 → fixed in 3.1.0
Description
Impact
A malicious SAML payload can require transforms that consume significant system resources to process, thereby resulting in reduced or denied service. This would be an effective way to perform a denial-of-service attack.
Patches
This has been resolved in version 3.1.0. The resolution is to limit the number of allowable transforms to 2.
References
https://github.com/node-saml/passport-saml/pull/595
Related
Alias · CVE (1)
- CVE-2021-39171 Passport-SAML is a SAML 2.0 authentication provider for Passport, the Node.js authentication library. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://github.com/node-saml/passport-saml/security/advisories/GHSA-5379-r78w-42h2 web
- https://nvd.nist.gov/vuln/detail/CVE-2021-39171 advisory
- https://github.com/node-saml/passport-saml/pull/595 web
- https://github.com/node-saml/passport-saml/commit/f1e00b64c21a725f545e675cd810bbaa435a3972 web
- https://github.com/node-saml/passport-saml package