# CVE-2022-39299: Signature bypass via multiple root elements in Passport-SAML

- Severity: High 7.4 (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:N`
- 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): 4.49%, higher than 91% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-12T00:00:00.000Z
- Modified: 2026-06-17T04:58:05.880Z
- Also known as: GHSA-m974-647v-whv7
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- node-saml passport-saml: < 3.2.2
- passport-saml (npm): before 3.2.2
- node-saml (npm): before 4.0.0-beta.5
- @node-saml/node-saml (npm): before 4.0.0-beta.5
- @node-saml/passport-saml (npm): before 4.0.0-beta.3
- passport-saml_project passport-saml: before 3.2.2; 4.0.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- 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

- <http://packetstormsecurity.com/files/169826/Node-saml-Root-Element-Signature-Bypass.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/node-saml/passport-saml/security/advisories/GHSA-m974-647v-whv7> (third-party-advisory, web)
- <https://github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39299> (advisory)
- <https://github.com/node-saml/passport-saml> (package)
- <https://github.com/node-saml/passport-saml/releases/tag/v3.2.2> (web)

## Sources

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

---

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