CVE-2021-39171
JSON

5.3medium

Unlimited transforms allowed for signed nodes

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.32% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5379-r78w-42h2

Description

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.

Affected

Product or packageVersionsReported by
node-saml passport-saml< 3.1.0CVE List
passport-saml (npm)before 3.1.0GitHub Advisory Database
passport-saml_project passport-samlbefore 3.1.0NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database
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

NVD (es)

Passport-SAML es un proveedor de autenticación SAML versión 2.0 para Passport, la biblioteca de autenticación de Node.js. Anterior a la versión 3.1.0, una carga útil SAML maliciosa puede requerir transformaciones que consumen recursos significativos del sistema para procesar, y por lo tanto, resultando en un servicio reducido o denegado. Esta sería una manera efectiva de llevar a cabo un ataque de denegación de servicio. Esto ha sido resuelto en versión 3.1.0. La resolución consiste en limitar el número de transformaciones permitidas a 2.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-39171 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-5379-r78w-42h2 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-39171 changed 2026-06-17Public domain