All reports
Critical

Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential)

Affected versions

RubyGemsruby-saml
Affected versions
>= 1.13.0, < 1.18.0
Fixed version
1.18.0
RubyGemsruby-saml
Affected versions
< 1.12.4
Fixed version
1.12.4

Exploitation

CVE-2025-25291

Probability of exploitation in the next 30 days: 20.97%

FIRST EPSS · 2026-11-18

Description

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.

Links

Credits

  • ahacker1-securesaml