CVE-2026-46490
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.
Weakness
- CWE-91: XML Injection
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-06-09 |
Timeline
- 2026-05-21GitHub advisory published (GHSA-34r5-q4jw-r36m)18 days before publication
- 2026-06-08Published by the CNA18:41 UTC
- 2026-06-09CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-34r5-q4jw-r36m, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm samlify | before 2.13.0 | 2.13.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| samlify_project samlify | before 2.13.0fixed in 2.13.0 | 2.13.0 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-46490'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-46490'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-46490'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-46490'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).