Skip to content
OpenAdvisories
High · 8.7 Public exploit CVE-2026-46490 EUVD-2026-35188GHSA-34r5-q4jw-r36m

samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions

Published Jun 8, 2026 · Updated Jun 9, 2026 · Assigned by GitHub_M

Description

samlify is a Node.js library for SAML single sign-on. Prior to version 2.13.0, samlify’s template substitution only escapes attribute contexts. Values inserted into element text (e.g., <saml:AttributeValue>) are not escaped. A normal user can inject XML markup into an attribute value (e.g., email, name) and add new <saml:Attribute> elements inside the signed assertion. The IdP then signs the tampered assertion and the SP accepts the injected attributes as trusted. This allows privilege escalation when attributes are used for authorization (roles/groups). This issue has been patched in version 2.13.0.

Affected products

VendorProductAffectedFixed
tngan samlify < 2.13.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm samlify < 2.13.0 2.13.0 GHSA-34r5-q4jw-r36m

References