CVE-2025-25291ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)
- 9.3CriticalCVSS base score
- 21.0%Exploitation in 30 daysEPSS · top 2.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 34 days later
· 34 days later
Published
- 8 months later
· 8 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Critical9.3 | 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 |
| NVDNVD · Modified | 4.0 | Critical9.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 21.0% · top 2.4% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.3.
Affected products
- affected < 1.12.4
- affected >= 1.13.0, < 1.18.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsruby-samlGHSA-4vc4-m8qh-g8jm (opens in a new tab)
References
References13
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm (opens in a new tab)x_refsource_CONFIRM
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv (opens in a new tab)x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9 (opens in a new tab)x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97 (opens in a new tab)x_refsource_MISC
- https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released (opens in a new tab)x_refsource_MISC
- https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials (opens in a new tab)x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 (opens in a new tab)x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 (opens in a new tab)x_refsource_MISC
- https://portswigger.net/research/saml-roulette-the-hacker-always-wins (opens in a new tab)x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2024-329_GHSL-2024-330_ruby-saml (opens in a new tab)x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250314-0010/ (opens in a new tab)
- https://news.ycombinator.com/item?id=43374519 (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/04/msg00011.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-6415 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4vc4-m8qh-g8jm (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-25291)Record last updated .