{"cve":"CVE-2022-39299","nvd":{"published":"2022-10-12T21:15:09.673","modified":"2026-06-17T04:58:05.880","status":"Modified","description":"Passport-SAML is a SAML 2.0 authentication provider for Passport, the Node.js authentication library. 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 passport-saml version 3.2.2 or newer. The issue was also present in the beta releases of `node-saml` before version 4.0.0-beta.5. If you cannot upgrade, disabling SAML authentication may be done as a workaround.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-347"],"references":["http://packetstormsecurity.com/files/169826/Node-saml-Root-Element-Signature-Bypass.html","https://github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e","https://github.com/node-saml/passport-saml/security/advisories/GHSA-m974-647v-whv7","http://packetstormsecurity.com/files/169826/Node-saml-Root-Element-Signature-Bypass.html","https://github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e"],"products":["passport-saml_project:passport-saml"],"source":"nvd","synced_at":"2026-10-19T21:36:05.460296998+00:00"},"epss":{"cve":"CVE-2022-39299","score":0.04494,"percentile":0.91489,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m974-647v-whv7","url":"https://osv.dev/vulnerability/GHSA-m974-647v-whv7","summary":"Signature bypass via multiple root elements","modified":"2023-11-08T04:10:18.208725Z","packages":[{"ecosystem":"npm","name":"passport-saml","purl":"pkg:npm/passport-saml","ranges":["<3.2.2"],"fixed":["3.2.2"]},{"ecosystem":"npm","name":"node-saml","purl":"pkg:npm/node-saml","ranges":["<4.0.0-beta.5"],"fixed":["4.0.0-beta.5"]},{"ecosystem":"npm","name":"@node-saml/node-saml","purl":"pkg:npm/%40node-saml/node-saml","ranges":["<4.0.0-beta.5"],"fixed":["4.0.0-beta.5"]},{"ecosystem":"npm","name":"@node-saml/passport-saml","purl":"pkg:npm/%40node-saml/passport-saml","ranges":["<4.0.0-beta.3"],"fixed":["4.0.0-beta.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}