{"id":"GHSA-5p8w-2mvw-38pv","summary":"Signature bypass via multiple root elements","details":"### Impact\n\nA 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.\n\n### Patches\n\nUsers should upgrade to node-saml v4.0.0-beta5 or newer. \n\n### Workarounds\n\nDisable SAML authentication.\n\n### References\n_Are there any links users can visit to find out more?_\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a discussion in the [node-saml repo](https://github.com/node-saml/node-saml/discussions)\n\n### Credits\n\n* Felix Wilhelm of Google Project Zero\n\n","aliases":["CVE-2022-39300"],"modified":"2023-11-08T04:10:18.269789Z","published":"2022-10-12T22:05:44Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-10-12T22:05:44Z","nvd_published_at":"2022-10-13T22:15:00Z","cwe_ids":["CWE-347"]},"references":[{"type":"WEB","url":"https://github.com/node-saml/node-saml/security/advisories/GHSA-5p8w-2mvw-38pv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39300"},{"type":"WEB","url":"https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe"},{"type":"PACKAGE","url":"https://github.com/node-saml/node-saml"}],"affected":[{"package":{"name":"node-saml","ecosystem":"npm","purl":"pkg:npm/node-saml"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.0.0-beta.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-5p8w-2mvw-38pv/GHSA-5p8w-2mvw-38pv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}