QID 377811

Date Published: 2022-12-15

QID 377811: Node-saml/passport-saml NPM Package Authentication Bypass Vulnerability (GHSA-m974-647v-whv7)

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.

Affected Versions:
passport-saml versions prior to 3.2.2
node-saml versions prior to 4.0.0-beta.5

QID Detection Logic (Authenticated):
This QID checks for vulnerable version of passport-saml and node-saml npm package installed globally. The QID runs the "npm list -g --silent" command and also checks the file "/usr/local/lib/node_modules/passport-saml/package.json" and "/usr/local/lib/node_modules/node-saml/package.json" to look for vulnerable versions of passport-saml and node-saml.

Note:
NPM packages can be installed anywhere as a developer/production dependency. This QID can only detect passport-saml and node-saml packages that are installed globally. For Microsoft Windows, this QID checks for installed packages within the '%systemdrive%\Users\Administrator' directory.

A remote attacker may be able to bypass SAML authentication on a website using passport-saml.

  • CVSS V3 rated as Critical - 8.1 severity.
  • CVSS V2 rated as Medium - 5.1 severity.
  • Solution
    Customers are advised to refer Vendor Advisory for more information regarding this vulnerability.

    Vendor References

    CVEs related to QID 377811

    Software Advisories
    Advisory ID Software Component Link
    GHSA-m974-647v-whv7 URL Logo github.com/advisories/GHSA-m974-647v-whv7
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report