CVE-2021-39171
HIGH 7.5CVSS 3.1Unlimited transforms allowed for signed nodes
Passport-SAML is a SAML 2.0 authentication provider for Passport, the Node.js authentication library. Prior to version 3.1.0, 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. This has been resolved in version 3.1.0. The resolution is to limit the number of allowable transforms to 2.
- Published
- 27 Aug 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-5379-r78w-42h2
- Sources
- NVDJSONOSV GHSA-5379-r78w-42h2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | passport-saml_project | passport-samlcpe:2.3:a:passport-saml_project:passport-saml:*:*:*:*:*:node.js:*:* |
< 3.1.0 | 3.1.0 |
| OSV | npm | passport-saml | < 3.1.0 | 3.1.0 |
References
- https://github.com/node-saml/passport-saml/pull/595 · Patch, Third Party Advisory, WEB
- https://github.com/node-saml/passport-saml/security/advisories/GHSA-5379-r78w-42h2 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-39171 · ADVISORY
- https://github.com/node-saml/passport-saml/commit/f1e00b64c21a725f545e675cd810bbaa435a3972 · WEB
- https://github.com/node-saml/passport-saml · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Aug 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Aug 2021)