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.
{
"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"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.10.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.1.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.3"
}
],
"source": "CPE_RANGE"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.12.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.13.0"
},
{
"fixed": "1.18.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "e76c5b36bac40aedbf1ba7ffaaf495be63328cd9"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.12.4",
"range": [
{
"fixed": "48cc5b92e1dde8637a013dfd48cdf8ceadd499b2"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v1.18.0",
"range": [
{
"fixed": "6a7c040049babe748ee1bb4ca13898c47189114c"
}
],
"source": "REFERENCES_TAG"
}
]
}