XML Injection Affecting samlify package, versions <2.13.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SAMLIFY-16796318
  • published22 May 2026
  • disclosed21 May 2026
  • creditDhiraj Mishra

Introduced: 21 May 2026

NewCVE-2026-46490  (opens in a new tab)
CWE-91  (opens in a new tab)

How to fix?

Upgrade samlify to version 2.13.0 or higher.

Overview

samlify is a Highly configuarable Node.js SAML 2.0 library for Single Sign On.

Affected versions of this package are vulnerable to XML Injection via the replaceTagsByValue() function. An attacker can inject arbitrary XML markup into SAML assertions by supplying crafted attribute values, leading to unauthorized attribute creation and privilege escalation when these attributes are used for authorization.

CVSS Base Scores

version 4.0
version 3.1