CVE-2025-47949: Samlify Samlify SAML Signature Wrapping Attack Vulnerability

CRITICAL
Advisory Identifier: GHSA-r683-v43c-6xqv
CWE-347
Published
Advisory Summary

CVE-2025-47949 is a CRITICAL samlify saml signature wrapping attack vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Samlify libraries in the npm ecosystem. The issue involves samlify saml signature wrapping attack. Remediation is available by upgrading affected packages to version 2.10.0.

CVE-2025-47949 at a Glance

CVE Identifier CVE-2025-47949
GHSA Identifier GHSA-r683-v43c-6xqv
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Samlify
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-47949

To remediate this vulnerability, upgrade all affected Samlify dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

samlify fixed: 2.10.0
npm install samlify@2.10.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls samlify

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-47949, inspect your project dependencies using npm:

npm ls samlify

Analyze the terminal output to locate any version of Samlify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.0), your application is affected.

Note: The npm ls samlify command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Samlify, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A Signature Wrapping attack has been found in samlify <v2.10.0, allowing an attacker to forge a SAML Response to authenticate as any user. An attacker would need a signed XML document by the identity provider.

CVE-2025-47949 Affected Samlify Versions

1 component(s)
Fixed Versions:
2.10.0
Product / Package Ecosystem Affected Versions Fixed Version
samlify
npm
< 2.10.0
2.10.0

References

Frequently Asked Questions

What is CVE-2025-47949?
CVE-2025-47949 is a security vulnerability in Samlify involving samlify SAML Signature Wrapping attack under CWE-347: Improper Verification of Cryptographic Signature.
Which Samlify versions are affected?
Affected versions include releases prior to 2.10.0 across affected packages: samlify.
What version fixes CVE-2025-47949?
Upgrading to 2.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is samlify affected?
Yes, samlify is affected in releases prior to 2.10.0. Upgrade your dependency to 2.10.0 or later.
What CWE is associated with CVE-2025-47949?
CVE-2025-47949 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check npm dependencies for CVE-2025-47949?
Run the dependency tree command: 'npm ls samlify'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r683-v43c-6xqv",
  "modified" : "2025-05-19T22:33:00Z",
  "published" : "2025-05-19T22:33:00Z",
  "aliases" : [ "CVE-2025-47949" ],
  "summary" : "samlify SAML Signature Wrapping attack",
  "details" : "A Signature Wrapping attack has been found in samlify <v2.10.0, allowing an attacker to forge a SAML Response to authenticate as any user. \nAn attacker would need a signed XML document by the identity provider.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "samlify"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tngan/samlify/security/advisories/GHSA-r683-v43c-6xqv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47949"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tngan/samlify/commit/115679acd89f0a37ea3ebd8fff7db54fca3e8af3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tngan/samlify"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-19T22:33:00Z",
    "nvd_published_at" : "2025-05-19T20:15:26Z"
  }
}