CVE-2022-39300 json
Signature bypass via multiple root elements in node-SAML
published 2022-10-12 4 y ago modified 2026-06-17 4 mo ago also GHSA-5p8w-2mvw-38pv , EUVD-2022-7029
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm node-saml 4.0.0-beta.5
- node_saml_project node_saml 4.0.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | node-saml | <4.0.0-beta.5 |
4.0.0-beta.5 |
Affected products
- node-saml node-saml
Classification
- Weakness
-
- CWE-347 Improper Verification of Cryptographic Signature
References
-
github.com
/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe
web, patch, third-party-advisory
-
github.com
/node-saml/node-saml/security/advisories/GHSA-5p8w-2mvw-38pv
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39300
advisory
-
github.com
/node-saml/node-saml
package
Sources
- CVE List CVE-2022-39300
- GitHub Advisory GHSA-5p8w-2mvw-38pv
- NVD CVE-2022-39300
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.