SAML authentication bypass via Incorrect XPath selector
Published 10 Sept 2024 · Updated 7 Aug 2026
Is your project on an affected ruby-saml?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.12.3
- Fixed in
- 1.12.3
bundle update --conservative ruby-saml # Gemfile: '>= 1.12.3'- Affected
- >=1.13.0 <1.17.0
- Fixed in
- 1.17.0
bundle update --conservative ruby-saml # Gemfile: '>= 1.17.0'Details
Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system.
This vulnerability was reported by ahacker1 of SecureSAML (ahacker1@securesaml.com)
Is GHSA-jw9c-mfg7-9rx2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ruby-saml, and gives you the command that fixes it.
More advisories for ruby-saml
- CriticalCVE-2025-66568Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation · 8 Dec 2025
- CriticalCVE-2025-66567Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential) · 8 Dec 2025
- MediumCVE-2025-54572Ruby SAML DOS vulnerability with large SAML response · 30 Jul 2025
- CriticalCVE-2025-25292Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential) · 12 Mar 2025
- CriticalCVE-2025-25291Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential) · 12 Mar 2025
- HighCVE-2025-25293Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses · 12 Mar 2025
References
- Linkgithub.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2
- Linkgithub.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-45409
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7
- Linkgithub.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd
- Packagegithub.com/SAML-Toolkits/ruby-saml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.