Skip to content

← Public intelligence

RubyGems package

ruby-saml

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

10 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.3RubyGemsPublished

    Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation

    CVE-2025-66568 · GHSA-x4h9-gwv3-r4m4

    Affected
    • RubyGems ruby-saml < 1.18.0
    Fixed in
    1.18.0· Vendor fix available
    Issue
    Ruby-saml up to and including 1.12.4, there is an authentication bypass vulnerability because of an issue at libxml2 canonicalization process used by Nokogiri for document transformation. That allows an attacker to be able to execute a Signature Wrapping attack. The vulnerability does not affect the version 1.18.0. Details When libxml2’s canonicalization is invoked on an invalid XML input, it may return an empty string rather than a canonicalized node. ruby-saml then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. Impact 1. Digest bypass: By crafting input that causes canonicalization to yield an empty string, the attacker can manipulate validation to pass incorrectly. 2. Signature replay on empty canonical form: If an empty string has been signed once (e.g., in a prior interaction or via a misconfigured flow), that signature can potentially be replayed to bypass authentication.

    Recommended action: Upgrade to 1.18.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Critical, CVSS 9.3RubyGemsPublished

    Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)

    CVE-2025-66567 · GHSA-9v8j-x534-2fx3

    Affected
    • RubyGems ruby-saml < 1.18.0
    Fixed in
    1.18.0· Vendor fix available
    Issue
    Ruby-saml up to and including 1.12.4, there is an authentication bypass vulnerability because of an incomplete fix for CVE-2025-25292. 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. The vulnerability does not affect the version 1.18.0. Impact That allows an attacker to be able to execute a Signature Wrapping attack and bypass the authentication

    Recommended action: Upgrade to 1.18.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. Medium, CVSS 6.9RubyGemsPublished

    Ruby SAML DOS vulnerability with large SAML response

    CVE-2025-54572 · GHSA-rrqh-93c8-j966

    Affected
    • RubyGems ruby-saml < 1.18.1
    Fixed in
    1.18.1· Vendor fix available
    Issue
    A denial-of-service vulnerability exists in ruby-saml even with the messagemaxbytesize setting configured. The vulnerability occurs because the SAML response is validated for Base64 format prior to checking the message size, leading to potential resource exhaustion. Details ruby-saml includes a messagemaxbytesize setting intended to prevent DOS attacks and decompression bombs. However, this protection is ineffective in some cases due to the order of operations in the code: https://github.com/SAML-Toolkits/ruby-saml/blob/fbbedc978300deb9355a8e505849666974ef2e67/lib/onelogin/ruby-saml/samlmessage.rb The vulnerability is in the execution order. Prior to checking bytesize the base64encoded? function performs regex matching on the entire input string: Impact What kind of vulnerability is it? Who is impacted? When successfully exploited, this vulnerability can lead to: - Excessive memory consumption - High CPU utilization - Application slowdown or unresponsiveness - Complete…

    Recommended action: Upgrade to 1.18.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Critical, CVSS 9.3RubyGemsPublished

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

    CVE-2025-25292 · GHSA-754f-8gm6-c4r2

    Affected
    • RubyGems ruby-saml >= 1.13.0, < 1.18.0; < 1.12.4
    Fixed in
    1.18.01.12.4· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.18.0 or 1.12.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. Critical, CVSS 9.3RubyGemsPublished

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

    CVE-2025-25291 · GHSA-4vc4-m8qh-g8jm

    Affected
    • RubyGems ruby-saml < 1.12.4; >= 1.13.0, < 1.18.0
    Fixed in
    1.18.01.12.4· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.18.0 or 1.12.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. High, CVSS 7.7RubyGemsPublished

    Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses

    CVE-2025-25293 · GHSA-92rq-c8cf-prrq

    Affected
    • RubyGems ruby-saml < 1.12.4; >= 1.13.0, < 1.18.0
    Fixed in
    1.18.01.12.4· Vendor fix available
    Issue
    ruby-saml is susceptible to remote Denial of Service (DoS) with compressed SAML responses. Ruby-saml uses zlib to decompress SAML responses in case they're compressed. It is possible to bypass the message size check with a compressed assertion since the message size is checked before inflation and not after. Impact This issue may lead to remote Denial of Service (DoS).

    Recommended action: Upgrade to 1.18.0 or 1.12.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. Critical, CVSS 9.9RubyGemsPublished

    SAML authentication bypass via Incorrect XPath selector

    CVE-2024-45409 · GHSA-jw9c-mfg7-9rx2

    Affected
    • RubyGems ruby-saml < 1.12.3; >= 1.13.0, < 1.17.0
    Fixed in
    1.12.31.17.0· Vendor fix available
    Issue
    Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system. This vulnerability was reported by ahacker1 of SecureSAML (ahacker1@securesaml.com)

    Recommended action: Upgrade to 1.17.0 or 1.12.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  8. Critical, CVSS 9.8RubyGemsPublished

    ruby-saml vulnerable to XPath injection

    CVE-2015-20108 · GHSA-r364-2pj4-pf7f

    Affected
    • RubyGems ruby-saml < 1.0.0
    Fixed in
    1.0.0· Vendor fix available
    Issue
    xmlsecurity.rb in the ruby-saml gem before 1.0.0 for Ruby allows XPath injection and code execution because prepared statements are not used.

    Recommended action: Upgrade to 1.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  9. High, CVSS 7.7RubyGemsPublished

    Ruby-SAML Improper Authentication vulnerability

    CVE-2017-11428 · GHSA-x2fr-v8wf-8wwv

    Affected
    • RubyGems ruby-saml < 1.7.0
    Fixed in
    1.7.0· Vendor fix available
    Issue
    OneLogin Ruby-SAML 1.6.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.

    Recommended action: Upgrade to 1.7.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  10. High, CVSS 7.5RubyGemsPublished

    Ruby-saml allows attackers to perform XML signature wrapping attacks

    CVE-2016-5697 · GHSA-36p7-xjw8-h6f2

    Affected
    • RubyGems ruby-saml < 1.3.0
    Fixed in
    1.3.0· Vendor fix available
    Issue
    ruby-saml prior to version 1.3.0 is vulnerable to an XML signature wrapping attack in the specific scenario where there was a signature that referenced at the same time 2 elements (but past the scheme validator process since 1 of the element was inside the encrypted assertion). ruby-saml users must update to 1.3.0, which implements 3 extra validations to mitigate this kind of attack.

    Recommended action: Upgrade to 1.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →