8.8
CWE
347 436
Advisory Published
Advisory Published
Updated

CVE-2025-25291: ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)

First published: Wed Mar 12 2025(Updated: )

### Summary An authentication bypass vulnerability was found in ruby-saml 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. ### Impact This issue may lead to authentication bypass.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
ruby-saml<1.12.4<1.18.0
rubygems/ruby-saml>=1.13.0<1.18.0
1.18.0
rubygems/ruby-saml<1.12.4
1.12.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-25291?

    The severity of CVE-2025-25291 is high due to the potential for authentication bypass.

  • How do I fix CVE-2025-25291?

    To fix CVE-2025-25291, upgrade ruby-saml to versions 1.12.4 or 1.18.0 or later.

  • What product is affected by CVE-2025-25291?

    CVE-2025-25291 affects the ruby-saml library.

  • What versions of ruby-saml are impacted by CVE-2025-25291?

    ruby-saml versions prior to 1.12.4 and between 1.13.0 and 1.18.0 are impacted by CVE-2025-25291.

  • How does CVE-2025-25291 exploit a parser differential?

    CVE-2025-25291 exploits the difference in XML parsing between ReXML and Nokogiri, leading to different document structures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203