CVE-2026-46490: CWE-91: XML Injection (aka Blind XPath Injection) in tngan samlify
CVE-2026-46490 is an XML Injection vulnerability in the Node.js library samlify prior to version 2.13.0. The issue arises because samlify escapes only attribute contexts during template substitution, but does not escape values inserted into element text such as <saml:AttributeValue>. This allows an attacker to inject XML markup into attribute values, resulting in additional <saml:Attribute> elements inside signed assertions. Consequently, the Identity Provider (IdP) signs tampered assertions, and the Service Provider (SP) accepts injected attributes as trusted, enabling privilege escalation when attributes control authorization. The vulnerability has been patched in samlify version 2.13.0.
AI Analysis
Technical Summary
samlify versions before 2.13.0 improperly handle XML escaping in SAML assertions by escaping only attribute contexts but not element text values. This flaw permits an attacker to inject arbitrary XML elements into signed assertions, specifically adding new <saml:Attribute> elements. Since the IdP signs the modified assertion and the SP trusts these attributes, this leads to privilege escalation when authorization decisions rely on these attributes. The vulnerability is identified as CWE-91 (XML Injection) and has a CVSS 4.0 score of 8.7 (high severity). The issue is fixed in samlify 2.13.0.
Potential Impact
An attacker can inject unauthorized XML attributes into signed SAML assertions, which are then trusted by the Service Provider. This enables privilege escalation by granting unauthorized roles or groups, potentially compromising access control mechanisms that depend on these attributes.
Mitigation Recommendations
Upgrade samlify to version 2.13.0 or later, where this XML Injection vulnerability has been patched. No other mitigation is necessary as the fix addresses the root cause.
CVE-2026-46490: CWE-91: XML Injection (aka Blind XPath Injection) in tngan samlify
Description
CVE-2026-46490 is an XML Injection vulnerability in the Node.js library samlify prior to version 2.13.0. The issue arises because samlify escapes only attribute contexts during template substitution, but does not escape values inserted into element text such as <saml:AttributeValue>. This allows an attacker to inject XML markup into attribute values, resulting in additional <saml:Attribute> elements inside signed assertions. Consequently, the Identity Provider (IdP) signs tampered assertions, and the Service Provider (SP) accepts injected attributes as trusted, enabling privilege escalation when attributes control authorization. The vulnerability has been patched in samlify version 2.13.0.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
samlify versions before 2.13.0 improperly handle XML escaping in SAML assertions by escaping only attribute contexts but not element text values. This flaw permits an attacker to inject arbitrary XML elements into signed assertions, specifically adding new <saml:Attribute> elements. Since the IdP signs the modified assertion and the SP trusts these attributes, this leads to privilege escalation when authorization decisions rely on these attributes. The vulnerability is identified as CWE-91 (XML Injection) and has a CVSS 4.0 score of 8.7 (high severity). The issue is fixed in samlify 2.13.0.
Potential Impact
An attacker can inject unauthorized XML attributes into signed SAML assertions, which are then trusted by the Service Provider. This enables privilege escalation by granting unauthorized roles or groups, potentially compromising access control mechanisms that depend on these attributes.
Mitigation Recommendations
Upgrade samlify to version 2.13.0 or later, where this XML Injection vulnerability has been patched. No other mitigation is necessary as the fix addresses the root cause.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-14T18:06:06.811Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a27120ce29bf47b5072ecdb
Added to database: 06/08/2026, 19:03:40 UTC
Last enriched: 06/16/2026, 08:38:01 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.