{"answers":{"affected":"2 open source packages ship an affected version, including samlify. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46490 exists.","fix":"Upgrade samlify to 2.13.0 or later.","what":"CVE-2026-46490 is a high-severity code injection vulnerability in tngan samlify, published on 8 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46490 and fix it if it is affected.\n\nWhat it is: CVE-2026-46490 is a high-severity code injection vulnerability in tngan samlify, published on 8 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46490 exists.\n\nAffected packages and fixed versions:\n- samlify (npm): affected all versions; fixed in 2.13.0\n- samlify (npm): affected all versions; fixed in 2.13.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-46490/ (Markdown: https://insights.sbomify.com/CVE-2026-46490/index.md)","id":"CVE-2026-46490","markdown":"https://insights.sbomify.com/CVE-2026-46490/index.md","name":"CVE-2026-46490","record":{"aliases":["GHSA-34r5-q4jw-r36m","MINI-23f5-3fxq-p65m","MINI-9mcc-3mf4-rghp","MINI-hr54-82fj-cxr6","ROOT-APP-NPM-CVE-2026-46490"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js SAML library","requires_auth":"none","summary":"Attackers can inject XML into SAML attributes to escalate privileges by adding unauthorized roles or groups to signed assertions.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"samlify","vendor":"samlify_project"}],"cvss":{"score":8.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"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., \u003csaml:AttributeValue\u003e) are not escaped. A normal user can inject XML markup into an attribute value (e.g., email, name) and add new \u003csaml:Attribute\u003e 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-06-30","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-30T19:13:30Z","kind":"github_poc","ref":"https://github.com/BiiTts/CVE-2026-46490-samlify-SAML-Attribute-Injection","stars":0,"title":"CVE-2026-46490 — samlify \u003c2.13.0 SAML AttributeValue XML injection -\u003e signed-assertion privilege escalation. Self-contained PoC, verified e2e."}],"tier":"weaponised"},"has_fix":true,"headline":"samlify: XML Injection in AttributeValue Allows Privilege Escalation in Signed SAML Assertions","id":"CVE-2026-46490","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"SimpleSAMLphp casserver FileSystemTicketStore path traversal allows out-of-ticket-directory read/unserialize and conditional deletion","id":"CVE-2026-46491"},"packages":[{"ecosystem":"npm","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"samlify","purl":null,"source":"GHSA-34r5-q4jw-r36m"},{"ecosystem":"npm","fixed":["2.13.0"],"introduced":["0"],"last_affected":[],"package":"samlify","purl":"pkg:npm/samlify","source":"GHSA-34r5-q4jw-r36m"}],"prev":{"headline":"SolidInvoice: Unrestricted file upload with no MIME validation allows stored XSS via malicious SVG logo","id":"CVE-2026-46489"},"products":["samlify"],"published":"2026-06-08","related":[{"cvss_score":9.9,"headline":"samlify SAML Signature Wrapping attack","id":"CVE-2025-47949","kev_date_added":null,"published":"2025-05-19"},{"cvss_score":7.5,"headline":"Samlify vulnerable to Authentication Bypass by allowing tokens to be reused with different usernames","id":"CVE-2017-1000452","kev_date_added":null,"published":"2018-01-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-09","vendors":["tngan"]},"summary":"Attackers can inject XML into SAML attributes to escalate privileges by adding unauthorized roles or groups to signed assertions.","url":"https://insights.sbomify.com/CVE-2026-46490/"}