CriticalGHSA-r364-2pj4-pf7fCVE-2015-20108
ruby-saml vulnerable to XPath injection
Published 27 May 2023 · Updated 14 Jan 2025
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
ruby-samlRubyGems
- Affected
- <1.0.0
- Fixed in
- 1.0.0
Update to the fixed version for your release line, for example:
bundle update --conservative ruby-saml # Gemfile: '>= 1.0.0'Details
xml_security.rb in the ruby-saml gem before 1.0.0 for Ruby allows XPath injection and code execution because prepared statements are not used.
Is GHSA-r364-2pj4-pf7f 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-20108
- Linkgithub.com/SAML-Toolkits/ruby-saml/pull/225
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/9853651b96b99653ea8627d757d46bfe62ab6448
- Packagegithub.com/SAML-Toolkits/ruby-saml
- Linkgithub.com/SAML-Toolkits/ruby-saml/compare/v0.9.2...v1.0.0
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2015-20108.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/OSVDB-124991.yml
- Linksecurity.netapp.com/advisory/ntap-20230703-0003
- Linksecurity.snyk.io/vuln/SNYK-RUBY-RUBYSAML-20217
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.