{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39299","id":"CVE-2022-39299","title":"Signature bypass via multiple root elements in Passport-SAML","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 ","descriptionLong":"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.","published":"2022-10-12T00:00:00.000Z","updated":"2026-10-28T02:31:08.812611825Z","reserved":"2022-09-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["node-saml passport-saml"],"affectedProducts":[{"vendor":"node-saml","product":"passport-saml","defaultStatus":null,"versions":[{"version":"< 3.2.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"passport-saml","purl":"pkg:npm/passport-saml","ranges":["<3.2.2"],"fixed":["3.2.2"],"advisory":"GHSA-m974-647v-whv7"},{"ecosystem":"npm","name":"node-saml","purl":"pkg:npm/node-saml","ranges":["<4.0.0-beta.5"],"fixed":["4.0.0-beta.5"],"advisory":"GHSA-m974-647v-whv7"},{"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"],"advisory":"GHSA-m974-647v-whv7"},{"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"],"advisory":"GHSA-m974-647v-whv7"}],"cwes":["CWE-347"],"aliases":["GHSA-m974-647v-whv7"],"references":[{"url":"https://github.com/node-saml/passport-saml/security/advisories/GHSA-m974-647v-whv7","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"http://packetstormsecurity.com/files/169826/Node-saml-Root-Element-Signature-Bypass.html","tags":["x_transferred","Third Party Advisory","VDB Entry","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39299.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39299","tags":["advisory"]},{"url":"https://github.com/node-saml/passport-saml","tags":["package"]},{"url":"https://github.com/node-saml/passport-saml/releases/tag/v3.2.2","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.04494,"epssPercentile":0.9168,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39299","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39299","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39299","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m974-647v-whv7","ok":true,"note":"GHSA-m974-647v-whv7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39299","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}