Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @node-saml/node-saml
  4. ›
  5. CVE-2022-39299

CVE-2022-39299: Improper Verification of Cryptographic Signature

October 12, 2022 (updated October 13, 2022)

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.

References

  • github.com/advisories/GHSA-m974-647v-whv7
  • github.com/node-saml/passport-saml/commit/8b7e3f5a91c8e5ac7e890a0c90bc7491ce33155e
  • github.com/node-saml/passport-saml/releases/tag/v3.2.2
  • github.com/node-saml/passport-saml/security/advisories/GHSA-m974-647v-whv7
  • nvd.nist.gov/vuln/detail/CVE-2022-39299

Code Behaviors & Features

Detect and mitigate CVE-2022-39299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.0.0-beta.5

Fixed versions

  • 4.0.0-beta.5

Solution

Upgrade to version 4.0.0-beta.5 or above. *Note*: 4.0.0-beta.5 may be an unstable version. Use caution.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

npm/@node-saml/node-saml/CVE-2022-39299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 30 Oct 2026 12:17:00 +0000.