CVE-2025-25291

Source
https://cve.org/CVERecord?id=CVE-2025-25291
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-25291.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-25291
Aliases
Downstream
Related
Published
2025-03-12T20:16:12.181Z
Modified
2026-03-15T22:50:40.254560Z
Severity
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-347",
        "CWE-436"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25291.json"
}
References

Affected packages

Git / github.com/omniauth/omniauth-saml

Affected ranges

Type
GIT
Repo
https://github.com/omniauth/omniauth-saml
Events
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.10.6"
        },
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "2.1.3"
        },
        {
            "introduced": "2.2.0"
        },
        {
            "fixed": "2.2.3"
        }
    ]
}

Affected versions

v2.*
v2.0.0
v2.1.0
v2.1.1
v2.1.2
v2.2.0
v2.2.1
v2.2.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-25291.json"

Git / github.com/saml-toolkits/ruby-saml

Affected ranges

Type
GIT
Repo
https://github.com/saml-toolkits/ruby-saml
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.12.4"
        }
    ]
}
Type
GIT
Repo
https://github.com/saml-toolkits/ruby-saml
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.13.0"
        },
        {
            "fixed": "1.18.0"
        }
    ]
}

Affected versions

0.*
0.7.3
0.8.0
0.8.1
1.*
1.3.1
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0
v0.*
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6
v0.4.7
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.6.0
v0.7.1
v0.9
v0.9.1
v0.9.2
v1.*
v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.10.0
v1.10.1
v1.10.2
v1.11.0
v1.12.0
v1.12.1
v1.12.2
v1.12.3
v1.13.0
v1.14.0
v1.15.0
v1.16.0
v1.17.0
v1.2.0
v1.3.0
v1.6.0
v1.6.1
v1.6.2
v1.7.0
v1.7.1
v1.7.2
v1.8.0
v1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-25291.json"