{"id":"CVE-2021-39171","published":"2021-08-27T22:05:11Z","modified":"2024-08-04T01:58:18Z","title":"Unlimited transforms allowed for signed nodes","vendor":"node-saml","product":"passport-saml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01323,"percentile":0.71612,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/node-saml/passport-saml/security/advisories/GHSA-5379-r78w-42h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-saml/passport-saml/pull/595","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":14.32},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"node-saml","affectedVersions":[{"vendor":"node-saml","product":"passport-saml","versions":["< 3.1.0"]}],"affected":[{"ecosystem":"npm","package":"passport-saml","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-5379-r78w-42h2"],"provenance":"source"}],"summary":{"text":"The Unlimited transforms flaw affects the signature-validation handling for signed nodes in passport-saml, the SAML 2.0 authentication provider for Passport in Node.js, from the node-saml project. An attacker who sends a crafted SAML payload can force the library to process an unbounded number of transforms, consuming significant resources and causing reduced or denied service, with no authentication or user interaction required and network access sufficient.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:24Z"},"euvd":{"id":"EUVD-2021-1569","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-saml-passport-saml-cve-2021-39171","children":[{"from":"CVE-2021-39171","to":"CVE-2022-39299","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:passport-saml","fromFixed":"3.1.0","toFixed":"3.2.2","daysApart":411},{"kind":"same-code","provenance":"machine","files":["src/node-saml/saml.ts"],"commits":["https://github.com/node-saml/passport-saml/commit/f1e00b64c21a725f545e675cd810bbaa435a3972","https://github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e"],"basis":"shared function","functions":["SAML"]}]}],"packageHistory":[{"cve":"CVE-2021-39171","published":"2021-08-27","fixed":"3.1.0","kev":false},{"cve":"CVE-2022-39299","published":"2022-10-12","fixed":"3.2.2","kev":false}],"package":"npm:passport-saml"}}