Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. samlify
  4. ›
  5. CVE-2026-46490

CVE-2026-46490: samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions

May 21, 2026 (updated June 9, 2026)

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).

References

  • github.com/advisories/GHSA-34r5-q4jw-r36m
  • github.com/tngan/samlify/security/advisories/GHSA-34r5-q4jw-r36m
  • nvd.nist.gov/vuln/detail/CVE-2026-46490

Code Behaviors & Features

Detect and mitigate CVE-2026-46490 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.13.0

Fixed versions

  • 2.13.0

Solution

Upgrade to version 2.13.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-91: XML Injection (aka Blind XPath Injection)

Source file

npm/samlify/CVE-2026-46490.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:23 +0000.