9.3critical
ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 34.4% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4vc4-m8qh-g8jmBIT-GITLAB-2025-25291
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SAML-Toolkits ruby-saml | < 1.12.4, >= 1.13.0, < 1.18.0 | CVE List |
| ruby-saml (RubyGems) | before 1.12.4, from 1.13.0 before 1.18.0 | GitHub Advisory Database |
| omniauth omniauth_saml | before 1.10.6, from 2.0.0 before 2.1.3, from 2.2.0 before 2.2.3 | NVD |
| onelogin ruby-saml | before 1.12.4, from 1.13.0 before 1.18.0 | NVD |
| netapp storagegrid | Not specified | NVD |
| gitlab (Bitnami) | before 17.9.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
ruby-saml proporciona inicio de sesión único (SSO) con lenguaje de marcado para aserciones de seguridad (SAML) para Ruby. Se detectó una vulnerabilidad de omisión de autenticación en ruby-saml anterior a las versiones 1.12.4 y 1.18.0 debido a una diferencia en el analizador. ReXML y Nokogiri analizan XML de forma diferente; los analizadores pueden generar estructuras de documento completamente distintas a partir de la misma entrada XML. Esto permite a un atacante ejecutar un ataque de envoltura de firma. Este problema puede provocar la omisión de autenticación. Las versiones 1.12.4 y 1.18.0 solucionan el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-25291 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4vc4-m8qh-g8jm changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-25291 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITLAB-2025-25291 changed 2026-09-08 | Apache-2.0 |