NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · RubyGems

CVE-2025-25291: Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential)

criticalCVSS 4.0 9.3 · 3.1 9.8GHSA-4vc4-m8qh-g8jm

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.

Published Mar 12, 2025 · Updated Nov 3, 2025

Affected packages

ruby-saml

Ecosystem
RubyGems
Affected
< 1.12.4
Fixed in
1.12.4
Check
bundle info ruby-saml

ruby-saml

Ecosystem
RubyGems
Affected
>= 1.13.0, < 1.18.0
Fixed in
1.18.0
Check
bundle info ruby-saml

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to ahacker1-securesaml.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More RubyGems vulnerabilities

All RubyGems entries