Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 62%

CVE-2026-46490: CWE-91: XML Injection (aka Blind XPath Injection) in tngan samlify

0
High
VulnerabilityCVE-2026-46490cvecve-2026-46490cwe-91
Published: 06/08/2026 (06/08/2026, 18:41:40 UTC)
Source: CVE Database V5
Vendor/Project: tngan
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

samlify
pkg:npm/samlify
Affected versions
<2.13.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/16/2026, 08:38:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses