# CVE-2022-39300: Signature bypass via multiple root elements in node-SAML

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-10-12T22:05:44.000Z
- Modified: 2026-06-17T04:58:05.997Z
- Also known as: GHSA-5p8w-2mvw-38pv
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- node-saml node-saml: < 4.0.0-beta.5
- node-saml (npm): before 4.0.0-beta.5
- node_saml_project node_saml: before 4.0.0; 4.0.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/node-saml/node-saml/security/advisories/GHSA-5p8w-2mvw-38pv> (third-party-advisory, web)
- <https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39300> (advisory)
- <https://github.com/node-saml/node-saml> (package)

## Sources

- CVE List: [CVE-2022-39300](https://www.cve.org/CVERecord?id=CVE-2022-39300), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-5p8w-2mvw-38pv](https://github.com/advisories/GHSA-5p8w-2mvw-38pv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39300](https://nvd.nist.gov/vuln/detail/CVE-2022-39300), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39300 · Whole record: https://cve.day/CVE-2022-39300.json · Rebuilt by cve.day 2026-11-25T22:58:15.674Z
