Skip to main content
← All vulnerabilities
CVE-2025-25291GHSA-4VC4-M8QH-G8JMBIT-GITLAB-2025-25291

ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.4, 1.18.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. An authentication bypass vulnerability was found in ruby-saml prior to versions 1.12.4 and 1.18.0 due to a parser differential. 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. This issue may lead to authentication bypass. Versions 1.12.4 and 1.18.0 fix the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • SAML-Toolkits ruby-saml

    fixed in 1.12.4; From 1.13.0 · fixed in 1.18.0

  • ruby-samlRubyGems

    fixed in 1.12.4

  • ruby-samlRubyGems

    From 1.13.0 · fixed in 1.18.0

References 10

GitHub · SAML-Toolkits/ruby-saml

GitHub · omniauth/omniauth-saml

about.gitlab.com

github.blog

portswigger.net

securitylab.github.com