CVE-2025-47949: Samlify Samlify SAML Signature Wrapping Attack Vulnerability
CRITICALCVE-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
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.
npm install samlify@2.10.0
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
CVE-2025-47949 Affected Samlify Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
samlify
|
npm |
< 2.10.0
|
2.10.0
|
References
Frequently Asked Questions
What is CVE-2025-47949?
Which Samlify versions are affected?
What version fixes CVE-2025-47949?
Is samlify affected?
What CWE is associated with CVE-2025-47949?
How can I check npm dependencies for CVE-2025-47949?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}