GHSA-jv46-xfwm-36j7

Suggest an improvement
Source
https://github.com/advisories/GHSA-jv46-xfwm-36j7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-jv46-xfwm-36j7/GHSA-jv46-xfwm-36j7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jv46-xfwm-36j7
Aliases
Published
2026-06-26T21:05:13Z
Modified
2026-06-26T21:26:32Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Relyra SAML SignatureValue not cryptographically verified -> authentication bypass
Details

Summary

Relyra 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.

Details

In 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.

Impact

A 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.

Patches

Relyra 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.

Workarounds

There is no safe configuration of 1.0.0 or 1.1.0. Upgrade to 1.2.0 or later.

Resources

  • Fix commit 2e45689 (wire real XMLDSig crypto into the candidate arm)
  • Fix commit 8910200 (close metadata trust bypass, pin over DER)
  • Regression proof: test/security/xml/adversarial_crypto_test.exs, test/relyra/metadata/auto_refresh_test.exs, test/security/ci_gate_integrity_test.exs
Database specific
{
    "cwe_ids":  [
        "CWE-287",
        "CWE-347"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-26T21:05:13Z",
    "nvd_published_at":  "2026-06-18T21:16:29Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Hex / relyra

Package

Name
relyra
Purl
pkg:hex/relyra

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.2.0

Affected versions

1.*
1.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-jv46-xfwm-36j7/GHSA-jv46-xfwm-36j7.json"