{"id":"CVE-2022-39300","published":"2022-10-13T00:00:00Z","modified":"2025-04-23T16:50:20Z","title":"Signature bypass via multiple root elements in node-SAML","vendor":"node-saml","product":"node-saml","tier":"tail","description":{"text":"node SAML is a SAML 2.0 library based on the SAML implementation of passport-saml. A remote attacker may be able to bypass SAML authentication on a website using passport-saml. A successful attack requires that the attacker is in possession of an arbitrary IDP signed XML element. Depending on the IDP used, fully unauthenticated attacks (e.g without access to a valid user) might also be feasible if generation of a signed message can be triggered. Users should upgrade to node-saml version 4.0.0-beta5 or newer. Disabling SAML authentication may be done as a workaround.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00782,"percentile":0.569,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/node-saml/node-saml/security/advisories/GHSA-5p8w-2mvw-38pv","tags":[]},{"url":"https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","tags":[]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.38},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"node-saml","affectedVersions":[{"vendor":"node-saml","product":"node-saml","versions":["< 4.0.0-beta.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:47:51.450082Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-saml","vulnerableRanges":["<4.0.0-beta.5"],"patched":["4.0.0-beta.5"],"from":["GHSA-5p8w-2mvw-38pv"],"provenance":"source"}],"summary":{"text":"A signature verification flaw in the node-saml library (the SAML 2.0 implementation underlying passport-saml) allows a SAML authentication bypass on websites that use it. Exploitation is remote and requires the attacker to hold an arbitrary IDP-signed XML element, though depending on the identity provider, unauthenticated attacks may also be possible if a signed message can be triggered.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:22Z"},"euvd":{"id":"EUVD-2022-7029","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-saml-cve-2022-39300","children":[{"from":"CVE-2022-39300","to":"CVE-2023-40178","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec"],"basis":"shared function","functions":["SAML"]}]},{"from":"CVE-2022-39300","to":"CVE-2025-54369","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]}]},{"from":"CVE-2022-39300","to":"CVE-2025-54419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + CWE + description similarity"}]}]}}