CVE-2022-39299 is an authentication bypass in the Passport-SAML (passport-saml) SAML 2.0 strategy for Passport (Node.js), also affecting node-saml beta releases prior to 4.0.0-beta.5. The issue stems from XML parsing/validation behavior that permits non-well-formed XML with multiple top-level (root) elements, which can break assumptions made during XML signature validation. An attacker who can supply a SAML message containing an IdP-signed XML element can leverage this to bypass SAML authentication checks in applications using the affected libraries.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).
This repository provides a proof-of-concept exploit for CVE-2022-39299, a signature bypass vulnerability in the 'passport-saml' library used for SAML SSO authentication in Node.js applications. The exploit targets multi-tenant platforms that allow custom SAML IdP configuration. The core of the exploit is the 'payloadGenerator.py' script, which constructs a malicious SAML response with two root elements: a signed error message (from 'base_payload.xml') and an unsigned assertion (from 'payload_appendix.xml') containing attacker-controlled authentication data. The script signs the error message using the provided 'cert.pem' and 'key.pem', appends the tampered assertion, and outputs the payload in a format suitable for delivery to the target's SAML login endpoint. The exploit demonstrates how an attacker can bypass authentication and impersonate any user if the target's SAML logic is vulnerable. The repository includes all necessary files for payload generation and clear instructions in the README.md for setting up a test environment and reproducing the attack.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.