{"id":"CVE-2026-46490","published":"2026-06-08T18:41:40Z","modified":"2026-06-09T15:13:53Z","title":"samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions","vendor":"tngan","product":"samlify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00469,"percentile":0.4146,"provenance":"source"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"references":[{"url":"https://github.com/tngan/samlify/security/advisories/GHSA-34r5-q4jw-r36m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":8.29},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.09}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-30","earliestUrl":"https://github.com/BiiTts/CVE-2026-46490-samlify-SAML-Attribute-Injection","repos":[{"name":"BiiTts/CVE-2026-46490-samlify-SAML-Attribute-Injection","url":"https://github.com/BiiTts/CVE-2026-46490-samlify-SAML-Attribute-Injection","stars":0,"created":"2026-06-30"}]},"first":{"date":"2026-06-30","source":"PoC-in-GitHub","url":"https://github.com/BiiTts/CVE-2026-46490-samlify-SAML-Attribute-Injection"},"provenance":"source"},"vendorSlug":"tngan","affectedVersions":[{"vendor":"tngan","product":"samlify","versions":["< 2.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-09T14:51:00.913741Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"samlify","vulnerableRanges":["<2.13.0"],"patched":["2.13.0"],"from":["GHSA-34r5-q4jw-r36m"],"provenance":"source"}],"summary":{"text":"samlify, a Node.js library for SAML single sign-on, fails to escape values inserted into element text such as <saml:AttributeValue>, so attribute values are not sanitised in that context. An attacker with a normal user account and no required user interaction can inject XML markup into an attribute value (such as email or name) to add new attributes inside the signed assertion, which the identity provider then signs and the service provider trusts, enabling privilege escalation where those attributes drive authorisation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:00Z"},"euvd":{"id":"EUVD-2026-35188","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-1000452","published":"2018-01-02","fixed":"2.4.0-rc5","kev":false},{"cve":"CVE-2025-47949","published":"2025-05-19","fixed":"2.10.0","kev":false,"link":{"from":"CVE-2025-47949","to":"CVE-2026-46490","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:samlify","fromFixed":"2.10.0","toFixed":"2.13.0","daysApart":385}]}},{"cve":"CVE-2026-46490","published":"2026-06-08","fixed":"2.13.0","kev":false}],"package":"npm:samlify"}}