p PatchFirst

PatchFirst · Latest vulnerabilities

ruby stack vulnerabilities · Page 2

Vulnerabilities published for ruby in the last 30 days: 53. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 1143

  1. CVE-2026-126085

    Medium · CVSS 5.3EPSS 0.48%Fix available

    Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage

    Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, ActiveStorage::Service::GCSService#url_for_direct_upload does not bind the declared content length into the signed direct-upload URL, and #headers_for_direct_upload returns no length constraint, so the URL authorizes an upload body of any size. A direct-upload client could store a file larger than the byte_size it declared, and the resulting blob keeps the declared size, possibly bypassing application file size validations and quotas. This is the weakness that CVE-2020-8162 fixed in the

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  2. CVE-2026-126084

    Medium · CVSS 4.7EPSS 0.14%Fix available

    Active Storage: Unsigned Content-Type in Active Storage GCS direct uploads with cache_control

    Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, when a GCS service is configured with the cache_control option, ActiveStorage::Service::GCSService#url_for_direct_upload signs direct-upload URLs with V4, and the V4 signature covers only the Cache-Control and Host headers. A direct-upload client can therefore send a Content-Type of its choosing, and can omit the declared Content-MD5, without invalidating the URL. GCS stores the supplied content type as object metadata, which takes precedence over the response-content-type that Active St

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  3. CVE-2026-126083

    High · CVSS 7.4EPSS 0.36%Fix available

    Action Pack: Possible IP spoofing in Action Dispatch RemoteIp

    Action Pack is a framework for handling and responding to web requests. From 8.1 until 8.1.4.1, Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remote_ip from Rack::Request#forwarded_for, which under Rack 3 reads the RFC 7239 Forwarded header in preference to X-Forwarded-For. When a reverse proxy appends the client address to X-Forwarded-For but passes a client-supplied Forwarded header through unchanged, request.remote_ip returns an address chosen by the client, and the IP spoofing check does not raise, because it compares only Client-Ip with the forwarded addresses. An unauthenticated attacker could therefore spoof request.remot

    • Update to 8.1.4.1
    Published Updated
  4. CVE-2026-126081

    High · CVSS 7.5EPSS 0.62%Fix available

    Action Pack: Possible Strong Parameters bypass in Parameters#each_key

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, ActionController::Parameters#each_key delegates to the internal ActiveSupport::HashWithIndifferentAccess that holds the request parameters, so when called with a block it returns that hash instead of the Parameters instance. The hash does not respond to permitted?, so Active Model mass assignment (new, assign_attributes, update) accepts it without raising ActiveModel::ForbiddenAttributesError. An application that passes the return value of each_key to mass assignment could allow a remote, unauthenticated attacker to set attributes that the ap

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  5. CVE-2026-126080

    High · CVSS 7.5EPSS 0.83%Public exploitFix available

    Active Support: Possible DoS vulnerability in Active Support safe_constantize

    Active Support is a collection of utility classes and standard library extensions used by Rails and other Ruby projects. Prior to 8.1.4.1 and 8.0.5.2, when constant lookup raises LoadError, ActiveSupport::Inflector#safe_constantize (and String#safe_constantize) builds a regular expression from the requested constant name without escaping it, so a caller that passes untrusted input lets the attacker choose the source of a pattern that the application compiles. Crafted patterns can trigger defects in Ruby's regular expression compiler, possibly leading to a crash of the server process, and repeated requests could keep the application unavailabl

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  6. CVE-2026-126079

    Medium · CVSS 6.1EPSS 0.34%Fix available

    Action View: Possible XSS vulnerability in Action View text helpers

    Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, with the HTML5 sanitizer (Rails::HTML5::Sanitizer, the default vendor on CRuby for applications using load_defaults 7.1 or later), Nokogiri before 1.19.5 serializes < and > unescaped inside attribute values. The Action View text helpers highlight and simple_format sanitize their input and then process the resulting HTML as a string: highlight splits it on tag boundaries to insert matches, and simple_format splits it into paragraphs on blank lines. An unescaped > or a blank line inside an attribu

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  7. CVE-2026-126078

    Medium · CVSS 6.1EPSS 0.34%Fix available

    Action View: Possible XSS vulnerability in Action View highlight helper

    Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, ActionView::Helpers::TextHelper#highlight substitutes each matched phrase into the :highlighter string without escaping it and returns the result marked HTML-safe. Because sanitizing leaves quote characters in text unescaped, a match substituted into a quoted attribute value of the highlighter, such as the <a href="search?q=\1"> form shown in the method's documentation, could end the attribute value and add attributes to the element, possibly leading to XSS. Applications are affected when they p

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  8. CVE-2026-126077

    Medium · CVSS 6.8EPSS 0.41%Fix available

    Action Pack: Possible sensitive session information leak in Active Storage proxy mode

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, When ActionDispatch::Cookies reads a signed or encrypted cookie that was written under a rotated secret (config.action_dispatch.cookies_rotations) or in the format that a :hybrid cookie serializer migrates from, it writes the cookie back to the response in the current format, and that write ignores request.session_options[:skip]. ActiveStorage::DisableSession relies on that option to keep the session cookie off the public, immutable responses of the Active Storage proxy controllers, but those controllers still load the session, so a request c

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  9. CVE-2026-126076

    Medium · CVSS 4.2EPSS 0.31%Fix available

    Action Pack: Possible restoration of destroyed sessions in Action Dispatch CacheStore

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, ActionDispatch::Session::CacheStore writes a session back to the cache at the end of each request that loaded it, without checking that the session's cache entry still exists. When a concurrent request destroys the session, through reset_session on logout or by deleting its cache entry on the server, a request that loaded the session earlier and finishes later restores it under its original session ID. Logout and server-side revocation could therefore fail to end a session, and an attacker who holds a stolen session cookie could keep that ses

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  10. CVE-2026-126075

    Medium · CVSS 4.7EPSS 0.34%Fix available

    Active Support: Possible XSS vulnerability in Active Support MessagePack serializer

    Active Support is a collection of utility classes and standard library extensions used by Rails and other Ruby projects. From 8.1 until 8.1.4.1, ActiveSupport::MessagePack serializes an ActiveSupport::SafeBuffer as its bytes alone and deserializes it as a new SafeBuffer, so a buffer that is no longer html_safe? (for example, one mutated in place with gsub!) is restored as html_safe. If such a buffer holds untrusted input and is stored through a MessagePack serializer, rendering it after it is loaded bypasses ERB auto-escaping, possibly leading to XSS. Applications on Rails 8.1 are affected if they use a MessagePack serializer, such as config.

    • Update to 8.1.4.1
    Published Updated
  11. CVE-2026-126074

    Medium · CVSS 4.3EPSS 0.5%Fix available

    Active Storage: Possible DoS vulnerability in Active Storage filename handling

    Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, ActiveStorage::Filename#base and #extension_with_delimiter, and therefore #extension, pass the stored filename unmodified to File.basename and File.extname, which raise ArgumentError when the name contains a NUL byte. Active Storage stores the client-supplied filename verbatim, so a user who is permitted to upload an attachment could persist such a filename on databases that accept NUL bytes in string columns, such as SQLite and MySQL/MariaDB. Each subsequent request that builds a varian

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  12. CVE-2026-126073

    Medium · CVSS 4.8EPSS 0.42%Fix available

    Action Pack: Possible cache poisoning in Action Pack content negotiation

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, Action Pack negotiates the format of a rendered response from the Accept, X-Requested-With and, for XHR requests without Accept, Content-Type request headers, but ActionController::Rendering#_set_vary_header adds Vary: Accept only when the request carries a usable Accept header and the response has no Vary header yet. A response to a request without Accept, or to an XHR request, therefore omits the headers that selected its representation, and a response whose Vary the application set before rendering (for example Vary: Accept-Language) never

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  13. CVE-2026-126072

    Medium · CVSS 5.9EPSS 0.41%Fix available

    Action Pack: Possible DoS vulnerability in Action Controller Live streaming

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, ActionController::Live::Buffer#close pushes its end-of-stream marker onto the response's bounded queue while it holds the buffer's monitor. When the client has stopped reading and the queue is full, the push blocks, and Buffer#abort, which runs when the client disconnects or a write times out, waits indefinitely for the same monitor. Each such response could permanently hold a web server thread and its ActionController::Live thread, possibly resulting in a DoS vulnerability through thread exhaustion. Applications that stream responses with Ac

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  14. CVE-2026-126071

    Medium · CVSS 5.3EPSS 0.44%Fix available

    Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming

    Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. From 8.0 until 8.0.5.2 and 8.1.4.1, when Active Storage serves a file through its proxy controllers, ActiveStorage::Streaming#send_blob_stream handles an error from the storage service by calling head to send a 404 or 500 response. If the error occurs after the first chunk has been written, the response is already committed, and head replaces the response body while the server is still reading the original ActionController::Live buffer. That buffer is never closed, so the server thread handling the request blocks unt

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  15. CVE-2026-126070

    Medium · CVSS 6.1EPSS 0.27%Fix available

    Action View: Possible XSS vulnerability in Action View strip_tags

    Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, strip_tags in Action View returns its sanitized output marked html_safe, but the underlying sanitizer encodes only &, < and >, leaving " and ' unencoded. Because ERB does not escape a string marked html_safe, untrusted input passed through strip_tags and rendered inside a quoted HTML attribute value could close the attribute and add new attributes, possibly leading to XSS. Applications that render strip_tags output from untrusted input inside an HTML attribute, for example in a title attribute o

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  16. CVE-2026-126069

    Medium · CVSS 4.7EPSS 0.24%Fix available

    Action View: Possible XSS vulnerability in Action View tag helpers

    Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, the fix for CVE-2026-33168 skips blank HTML attribute names in Action View tag helpers, but it tests the name before converting it to a string. A Symbol name made only of whitespace, such as :" ", is not blank, because Symbol#blank? is Symbol#empty?, so it reaches the attribute escaping, which emits an attribute with no name and produces malformed HTML. The asset tag helpers, such as image_tag, video_tag and audio_tag, symbolize their options, so a whitespace String name passed to them takes the

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  17. CVE-2026-126068

    Low · CVSS 3.7EPSS 0.34%Fix available

    Action Mailbox: Possible signature replay in Action Mailbox Mailgun ingress

    Action Mailbox routes incoming emails to controller-like mailboxes for processing in Rails. Prior to 8.1.4.1 and 8.0.5.2, the Action Mailbox Mailgun ingress authenticates a request with an HMAC of the timestamp and token parameters concatenated without a separator, and ActionMailbox::Ingresses::Mailgun::InboundEmailsController::Authenticator#recent? rejects only timestamps more than 2 minutes in the past. Because the signature does not fix the boundary between the two values, a captured signed request can be presented with a timestamp far in the future, which the ingress then accepts indefinitely. An attacker who obtains one signed Mailgun we

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  18. CVE-2026-126067

    Low · CVSS 3.1EPSS 0.16%Fix available

    Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores

    Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, Action Pack session stores other than ActionDispatch::Session::CookieStore (CacheStore, MemCacheStore, and third-party stores built on AbstractStore, AbstractSecureStore or the session mixins) write the session cookie without a SameSite attribute, regardless of config.action_dispatch.cookies_same_site_protection, which defaults to :lax. Only CookieStore applies the configured policy. In browsers that do not treat a cookie without the attribute as SameSite=Lax, a cross-site request could carry the session cookie, possibly leading to cross-site

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  19. CVE-2026-126064

    Low · CVSS 2EPSS 0.15%Fix available

    Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Node#[]=` or `#lang=`

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, the CRuby native extension can leave Ruby wrappers pointing to freed memory when Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang= replaces an existing attribute value after code has accessed the attribute's child nodes. Replacing the value frees native child nodes while their wrappers remain reachable, and later use of those wrappers can cause an invalid read or process segfault. JRuby is not affected. This issue is fixed in version 1.19.5.

    • Update to 1.19.5
    Published Updated
  20. CVE-2026-126063

    Low · CVSS 2.3EPSS 0.56%Fix available

    Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer

    Nokogiri is an open source XML and HTML library for the Ruby programming language. From 1.12.0 until 1.19.5, the C extension on CRuby and TruffleRuby has a Nokogiri::HTML5 serializer that does not escape text inside noscript elements or angle brackets inside attribute values. When an application sanitizes untrusted HTML with the default parsing options, allows noscript, and sends serialized output to a scripting-enabled browser, the browser can parse markup that Nokogiri did not produce, enabling mutation cross-site scripting. Using parse_noscript_content_as_text: true is the recommended workaround, not the vulnerable default. JRuby is not af

    • Update to 1.19.5
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →