CVE-2026-46490
HIGH 8.7CVSS 4.0samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions
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., ) are not escaped. A normal user can inject XML markup into an attribute value (e.g., email, name) and add new 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.
- Published
- 8 Jun 2026
- Last modified
- 23 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-91
- Also known as
- GHSA-34r5-q4jw-r36m
- Sources
- NVDJSONOSV GHSA-34r5-q4jw-r36mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | samlify_project | samlifycpe:2.3:a:samlify_project:samlify:*:*:*:*:*:*:*:* |
< 2.13.0 | 2.13.0 |
| OSV | npm | samlify | < 2.13.0 | 2.13.0 |
References
- https://github.com/tngan/samlify/security/advisories/GHSA-34r5-q4jw-r36m · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-46490 · ADVISORY
- https://github.com/tngan/samlify · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jun 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 May 2026)