p PatchFirst

PatchFirst · Latest vulnerabilities

ruby stack vulnerabilities

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-130001

    Critical · CVSS 9.8Public exploitFix available

    Mustache for Ruby: RCE using built-in method access

    > [!NOTE] > The vulnerability was fully disclosed to the maintainer in private prior to security advisories were enabled for the project. > This advisory presents a limited information for initial release to provide a time window for installing updates. Full information with PoCs would be added later. ## Summary Mustache template engine for Ruby in versions 1.1.2 and earlier allows remote attackers to achieve arbitrary code execution through accessing specific built-in methods in an attacker-supplied template. ## Details Mustache is often suggested as a safe simple template language to avoid SSTI vulnerabilities.[^1] [^2] Mustache for Ruby

    • Update to 1.1.3
    Published Updated
  2. CVE-2026-115472

    Medium · CVSS 6.5EPSS 0.35%Fix available

    Doorkeeper: When using public clients, any client can revoke any access token

    Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape. Prior to 5.9.1, Doorkeeper's OAuth token revocation flow does not correctly authorize revocation requests when public, non-confidential clients are used, allowing tokens to be revoked without correct authorization. This issue is fixed in version 5.9.1.

    • Update to 5.9.1
    Published Updated
  3. CVE-2026-128084

    Medium · CVSS 4.8EPSS 0.31%Fix available

    sqlite3-ruby: SQL Query Truncation

    sqlite3 provides Ruby bindings for the SQLite3 embedded database. Prior to 2.10.2, sqlite3-ruby casts Ruby string lengths to int before passing SQL through Database#prepare, bound String or Blob values through Statement#bind_param, and String or Blob results from Ruby-defined SQL functions and aggregates through Database#create_function and Database#create_aggregate. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger can wrap the length so SQLite processes only a prefix. A truncated SQL string can drop trailing clauses such as a WHERE condition, while a truncated bound value matters only when the application validated the full valu

    • Update to 2.10.2
    Published Updated
  4. CVE-2026-128069

    Medium · CVSS 4.7EPSS 0.22%Fix available

    rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls

    rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Before 1.7.2, the HTML4 and HTML5 variants of Rails::HTML::SafeListSanitizer reuse one Rails::HTML::PermitScrubber across calls and mutate its tags and attributes without synchronization. In a multithreaded process, concurrent sanitize calls using different tags: or attributes: options can interleave and cause one call to use the other call's allowlist. If a permissive call admits a script element or event-handler attribute, output expected to be sanitized under a stricter policy can retain it and cause cross-site scripting when rendered. Applications tha

    • Update to 1.7.2
    Published Updated
  5. CVE-2026-128068

    Medium · CVSS 5.3EPSS 0.45%Fix available

    rails-html-sanitizer: Possible regular expression denial of service with certain configurations

    rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression matching for this pattern,

    • Update to 1.7.2
    Published Updated
  6. CVE-2026-126366

    High · CVSS 7.5EPSS 0.56%Public exploitFix available

    msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM

    MessagePack for Ruby is an implementation of the MessagePack binary serialization format. Prior to 1.8.7, the Java-platform msgpack gem for JRuby allocated arrays and byte buffers directly from attacker-controlled array32, str32, and bin32 declared sizes before confirming that corresponding elements or bytes were available. A short MessagePack header could therefore trigger a very large allocation or sustained heap growth when an application decoded untrusted input through MessagePack.unpack or MessagePack::Unpacker, potentially exhausting the shared JVM heap. map32 and declared counts at or above 2^31 did not use the affected allocation beha

    • Update to 1.8.7
    Published Updated
  7. CVE-2026-126354

    Medium · CVSS 4.8EPSS 0.29%Public exploitFix available

    Addressable URI normalization resolves some dotted path segments to the wrong path

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.2.5 until 2.9.1, Addressable::URI.normalize_path can resolve a path containing leading parent segments and later parent segments to a different path than an RFC 3986 resolver. URI#normalize, URI#join, URI#==, and URI#=== inherit the result. An application that authorizes the Addressable-normalized path but sends the original URI to another resolver can allow access outside the intended path allowlist. Applications that use the same normalized value for authorization and the request, or reject parent segments, are unaffected.

    • Update to 2.9.1
    Published Updated
  8. CVE-2026-126352

    Medium · CVSS 5.9EPSS 0.43%Fix available

    Addressable: Regular Expression Denial of Service in Addressable templates with multiple variables

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 until 2.9.1, URI templates with several variables in one expression or several adjacent expressions generate ambiguous regular expressions. Affected forms include multi-variable expressions using operators other than plus and number sign, large plus or number-sign expressions, and adjacent single-variable expressions. Template#match or Template#extract can backtrack polynomially or exponentially on attacker-controlled URIs, causing denial of service on MRI Ruby before 3.2 and JRuby, with the large plus and number-sign for

    • Update to 2.9.1
    Published Updated
  9. CVE-2026-126351

    Medium · CVSS 5.9EPSS 0.41%Fix available

    Addressable: Denial of service in URI path normalization

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Prior to 2.9.1, Addressable::URI.normalize_path repeatedly scans and rewrites paths while removing only one nested dot segment per pass, producing quadratic work. URI#normalize, URI#normalized_path, URI#join, URI#==, and URI#=== inherit the behavior, so processing a sufficiently long attacker-controlled URI can consume a worker thread and cause denial of service on every Ruby implementation. URI.parse alone and code that never normalizes, compares, or joins untrusted URIs are unaffected. This issue is fixed in version 2.9.1.

    • Update to 2.9.1
    Published Updated
  10. CVE-2026-126350

    Medium · CVSS 5.9EPSS 0.42%Fix available

    Addressable: Regular Expression Denial of Service in Addressable templates with certain exploded expressions

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 until 2.9.1, URI template expressions using the explode modifier with the slash, dot, semicolon, question-mark, or ampersand operators generate ambiguous regular expressions. When Template#match or Template#extract processes an attacker-controlled URI beginning with the operator's leading character, optional member separators allow catastrophic backtracking and denial of service on MRI Ruby before 3.2 and JRuby. Addressable 2.9.0 incompletely remediated the earlier template issue because its tests did not reach these oper

    • Update to 2.9.1
    Published Updated
  11. CVE-2026-126349

    Low · CVSS 3.1EPSS 0.24%Fix available

    Addressable display_uri can show misleading hosts containing bidi and invisible characters

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.9.1, Addressable::IDNA.to_unicode can decode Punycode labels that contain bidirectional controls, zero-width characters, control characters, or other default-ignorable format characters. Addressable::URI#display_uri can consequently show a reordered or visually indistinguishable hostname even though host, normalized_host, and network connections use the original encoded hostname. The pure-Ruby backend accepts the full prohibited set, while the native libidn backend is affected from 2.5.2 for characters added after

    • Update to 2.9.1
    Published Updated
  12. CVE-2026-126348

    Medium · CVSS 4.3EPSS 0.27%Fix available

    Addressable display_uri can show misleading hosts with invalid Punycode A-labels

    Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displayin

    • Update to 2.9.1
    Published Updated
  13. CVE-2026-126209

    Medium · CVSS 5.3EPSS 0.41%Fix available

    Loofah allowed_uri? treats javascript&#x3a alert(1) as safe

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.25.0 until 2.25.3, Loofah::HTML5::Scrub.allowed_uri? strips whitespace and control characters before decoding a semicolon-less numeric character reference, changing where the reference ends and hiding a javascript: or vbscript: scheme that a browser reconstructs. The bypass applies to encoded colons and encoded scheme letters when a stripped character terminates the numeric reference. An application that renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting, a

    • Update to 2.25.3
    Published Updated
  14. CVE-2026-126208

    Medium · CVSS 4.7EPSS 0.36%Fix available

    Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization. Firefox fetches the attacker-chosen URL when a viewer renders the content, which can disclose the viewer's IP address, user agent, referrer, and access to hosts routable only from the viewer's network. Chrome and WebKit do not fetch these references, and the impact is a network reques

    • Update to 2.25.3
    Published Updated
  15. CVE-2026-126207

    Medium · CVSS 4.7EPSS 0.29%Fix available

    Loofah: CSS url() sanitization bypass via escaped parentheses

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah::HTML5::Scrub.scrub_css checks only the first parse of a style attribute, then rebuilds CSS with identifier escapes decoded so escaped parentheses, property names, comments, or quotes can become a live url() without a second safety check. An attacker can use list-style to make a viewer's browser request an attacker-chosen URL when content renders, or cursor to make the request on hover. The request can disclose the viewer's IP address, user agent, access timing, and access to internal-network hosts,

    • Update to 2.25.3
    Published Updated
  16. CVE-2026-126206

    Medium · CVSS 5.3EPSS 0.42%Fix available

    Loofah allowed_uri? treats data:text&sol;html as safe text/plain

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. In 2.25.2, Loofah::HTML5::Scrub.allowed_uri? treats a data URI mediatype containing the HTML5 named solidus reference &sol; as malformed and falls back to the allowed text/plain, while a browser decodes the reference and interprets the same value as text/html. An application that validates a user-controlled URL with this helper and renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting. Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's defau

    • Update to 2.25.3
    Published Updated
  17. CVE-2026-126205

    Medium · CVSS 5.3EPSS 0.4%Fix available

    Loofah: Regular expression denial of service in the SVG local-reference check

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, the Loofah HTML5 sanitizer checks href and xlink:href on elements in SVG_ALLOW_LOCAL_HREF with a regular expression whose line anchor and newline-matching whitespace cause an all-whitespace value to be rescanned from every line start. An attacker can submit an SVG reference element with a long multiline-whitespace attribute and consume CPU quadratically during sanitization. CRuby 3.1 and earlier and JRuby are affected, while CRuby 3.2 and later uses linear-time regular-expression matching. The default safe

    • Update to 2.25.3
    Published Updated
  18. CVE-2026-126203

    Medium · CVSS 6.1EPSS 0.27%Fix available

    Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values

    Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.21.0 until 2.25.3, Loofah's HTML5 APIs Loofah.html5_fragment, Loofah.html5_document, and the scrub_html5_* methods can emit sanitized output that a browser reparses as different markup when used with Nokogiri before 1.19.5, because those Nokogiri versions do not escape angle brackets in attribute values. MathML can place markup inside an allowed attribute so the reparsed output becomes live HTML. The :strip scrubber is affected in every browser, while :prune and :escape are affected in WebKit browsers. Loofah's HTML

    • Update to 2.25.3
    Published Updated
  19. CVE-2026-126188

    Low · CVSS 3.7EPSS 0.28%Fix available

    Active Storage: Possible local file disclosure in Active Storage video previews and analysis

    Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.0.5.2 and from 8.1 until 8.1.4.1, Active Storage's ActiveStorage::Previewer::VideoPreviewer, ActiveStorage::Analyzer::VideoAnalyzer, and ActiveStorage::Analyzer::AudioAnalyzer pass uploaded blob contents to FFmpeg without restricting the demuxer. A direct upload can retain a client-declared video/* or audio/* content type for an HLS playlist. FFmpeg content probing selects the hls demuxer, which opens attacker-named file:// segments when the blob is previewed or analyzed. Applications that accept untrusted

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated
  20. CVE-2026-126186

    High · CVSS 8.8EPSS 0.51%Fix available

    Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing

    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::Blob#open writes a blob to a tempfile whose name carries the extension of the uploaded filename, and hands that path to ffprobe (VideoAnalyzer, AudioAnalyzer), ffmpeg (VideoPreviewer) and ImageMagick (ImageAnalyzer, the :mini_magick variant processor). These tools select a decoder from the file extension when the content does not identify its own format, so an attacker who chooses the filename and declares the content type of an upload chooses which decoder processes it. A

    • Update to 8.0.5.2
    • Update to 8.1.4.1
    Published Updated

Check your server

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

Check your server →