{"id":"CVE-2026-49454","aliases":["CVE-2026-49454","GHSA-jv46-xfwm-36j7"],"related":[],"kind":"vulnerability","state":"published","title":"Relyra SAML SignatureValue not cryptographically verified -> authentication bypass","summary":"Relyra is a strict-by-default SAML 2.0 Service Provider library for Elixir and Phoenix. Versions 1.0.0 and 1.1.0 accept forged SAML signatures because SignatureValue was not cryptographically verified before the library returned a successful authentication result. The XMLDSig trust boundary was incomplete as :public_key.verify over the exclusive-C14N canonicalized SignedInfo was not performed against the configured IdP certificate's public key, DigestValue was not recomputed over the canonicalized referenced element, and canonicalize/2 remained an unused passthrough in the signature-verification path. The result was a structure-only acceptance path where document shape and trust-source rejection could succeed without proving the signature bytes. A forged SignatureValue carrying an attacker-controlled NameID could be accepted as {:ok}. This issue has been fixed in version 1.2.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Relyra is a strict-by-default SAML 2.0 Service Provider library for Elixir and Phoenix. Versions 1.0.0 and 1.1.0 accept forged SAML signatures because SignatureValue was not cryptographically verified before the library returned a successful authentication result. The XMLDSig trust boundary was incomplete as :public_key.verify over the exclusive-C14N canonicalized SignedInfo was not performed against the configured IdP certificate's public key, DigestValue was not recomputed over the canonicalized referenced element, and canonicalize/2 remained an unused passthrough in the signature-verification path. The result was a structure-only acceptance path where document shape and trust-source rejection could succeed without proving the signature bytes. A forged SignatureValue carrying an attacker-controlled NameID could be accepted as {:ok}. This issue has been fixed in version 1.2.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nRelyra `1.0.0` and `1.1.0` accept forged SAML signatures because `SignatureValue` was not cryptographically verified before the library returned a successful authentication result.\n\n## Details\n\nIn `1.0.0` and `1.1.0`, the XMLDSig trust boundary was incomplete. `:public_key.verify` over the exclusive-C14N canonicalized `SignedInfo` was not performed against the configured IdP certificate's public key, `DigestValue` was not recomputed over the canonicalized referenced element, and `canonicalize/2` remained an unused passthrough in the signature-verification path. The result was a structure-only acceptance path where document shape and trust-source rejection could succeed without proving the signature bytes.\n\n## Impact\n\nA forged `SignatureValue` carrying an attacker-controlled `NameID` can be accepted as `{:ok}`. Any relying-party application using Relyra `1.0.0` or `1.1.0` can be logged into as an arbitrary user if it trusts the affected response path.\n\n## Patches\n\nRelyra `1.2.0` closes the gap with real exclusive-C14N canonicalization, `:public_key.verify` against the configured IdP certificate's public key, and a constant-time `DigestValue` recompute/compare bound to the exact consumed node on both `verify/4` and `verify_metadata_root/4`.\n\n## Workarounds\n\nThere is no safe configuration of `1.0.0` or `1.1.0`. Upgrade to `1.2.0` or later.\n\n## Resources\n\n- Fix commit `2e45689` (wire real XMLDSig crypto into the candidate arm)\n- Fix commit `8910200` (close metadata trust bypass, pin over DER)\n- Regression proof: `test/security/xml/adversarial_crypto_test.exs`, `test/relyra/metadata/auto_refresh_test.exs`, `test/security/ci_gate_integrity_test.exs`","format":"markdown","source":"ghsa"},{"lang":"es","text":"Relyra es una biblioteca de proveedor de servicios SAML 2.0 estricta por defecto para Elixir y Phoenix. Las versiones 1.0.0 y 1.1.0 aceptan firmas SAML falsificadas porque SignatureValue no fue verificado criptográficamente antes de que la biblioteca devolviera un resultado de autenticación exitoso. El límite de confianza de XMLDSig estaba incompleto ya que :public_key.verify sobre el SignedInfo canonizado exclusive-C14N no se realizó contra la clave pública del certificado IdP configurado, DigestValue no se volvió a calcular sobre el elemento referenciado canonizado, y canonicalize/2 permaneció como un passthrough sin usar en la ruta de verificación de firma. El resultado fue una ruta de aceptación solo por estructura donde la forma del documento y el rechazo de la fuente de confianza podían tener éxito sin probar los bytes de la firma. Un SignatureValue falsificado que contenía un NameID controlado por el atacante podía ser aceptado como {:ok}. Este problema ha sido solucionado en la versión 1.2.0.","source":"nvd"}],"published":"2026-06-18T20:52:22.605Z","modified":"2026-10-26T11:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-287","CWE-347"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.2.0","status":"affected"}],"vendor":"szTheory","product":"relyra","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.2.0"}],"ecosystem":"Hex","package":"relyra","purl":"pkg:hex/relyra","source":"ghsa"}],"references":[{"url":"https://github.com/szTheory/relyra/security/advisories/GHSA-jv46-xfwm-36j7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/szTheory/relyra/commit/2e456897af3158c175bb490ce7fc51d6241c8922","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/szTheory/relyra/commit/8910200","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49454","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/szTheory/relyra","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-06-22T15:50:42.585Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49454","url":"https://www.cve.org/CVERecord?id=CVE-2026-49454","licence":"CVE Terms of Use","modified":"2026-06-22T15:51:42.595Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jv46-xfwm-36j7","url":"https://github.com/advisories/GHSA-jv46-xfwm-36j7","licence":"CC-BY-4.0","modified":"2026-06-26T21:26:32.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49454","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49454","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:25.177Z","epss":{"score":0.00135,"percentile":0.03166,"date":"2026-12-01T12:00:22.000Z"}}