Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)
Published 8 Dec 2025 · Updated 4 Feb 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 package
- Affected
- <1.18.0
- Fixed in
- 1.18.0
bundle update --conservative ruby-saml # Gemfile: '>= 1.18.0'Details
Summary
Ruby-saml up to and including 1.12.4, there is an authentication bypass vulnerability because of an incomplete fix for CVE-2025-25292. ReXML and Nokogiri parse XML differently, the parsers can generate entirely different document structures from the same XML input. That allows an attacker to be able to execute a Signature Wrapping attack. The vulnerability does not affect the version 1.18.0.
Impact
That allows an attacker to be able to execute a Signature Wrapping attack and bypass the authentication
Is GHSA-9v8j-x534-2fx3 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
- 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
- CriticalCVE-2024-45409SAML authentication bypass via Incorrect XPath selector · 10 Sept 2024
References
- Linkgithub.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-9v8j-x534-2fx3
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-66567
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97
- Packagegithub.com/SAML-Toolkits/ruby-saml
- Advisorygithub.com/advisories/GHSA-754f-8gm6-c4r2
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-66567.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.