PatchSiren

ViewComponent CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

HIGH ViewComponent CVE published 2026-07-17

CVE-2026-54498

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-17T21:17:09.043Z and has not been modified since then. This high-severity vulnerability affects ViewComponent in Ruby on Rails applications, specifically versions 4.0.0 until 4.12.0. The vulnerability class is related to ViewComponent::Base#around_render returning HTML-unsafe strings, creating an XSS risk when downstream applications use around_render to wrap, replace, instrument, or conditionally return content that includes user-controlled data.

MEDIUM ViewComponent CVE published 2026-07-17

CVE-2026-54497

CVE-2026-54497 is a medium-severity vulnerability affecting ViewComponent, a framework for building reusable view components in Ruby on Rails. The vulnerability causes ViewComponent::Base instances to retain render-scoped objects across calls to render_in, potentially leading to authorization issues, stale data, and security risks. This issue may allow attackers to exploit the vulnerability to gain unauthorized access or manipulate sensitive data.

MEDIUM ViewComponent CVE published 2026-05-26

CVE-2026-44837

## Summary view_component versions 3.0.0 through 4.9.0 contain a path traversal vulnerability in the system test entrypoint. The application uses `File.realpath` to canonicalize a user-controlled file path, then performs a prefix-based check against the temp directory path. This containment check is unsafe because sibling directories can share the same string prefix, allowing an attacker to access files outside the intended directory. The vulnerability is fixed in version 4.9.0.

MEDIUM ViewComponent CVE published 2026-05-26

CVE-2026-44836

CVE-2026-44836 is a medium-severity vulnerability in the view_component Ruby gem affecting versions 3.0.0 through 4.9.0. The issue stems from improper method authorization in the preview route functionality. When preview routes are enabled, the application derives an example name from the URL and invokes it via public_send without verifying that the requested method is explicitly defined as a preview example. This allows attackers to invoke inherited public methods from ViewComponent::Preview, most notably render_with_template. This method accepts template and locals parameters from request parameters, which are subsequently passed to Rails' render template: mechanism. If preview routes are exposed in production or accessible environments, an attacker can leverage this to render internal Rails templates that are not otherwise directly routable, potentially exposing sensitive application internals or administrative interfaces. The vulnerability was disclosed on 2026-05-26 and is fixed in version 4.9.0. Organizations using view_component with exposed preview functionality should prioritize upgrading to the patched version and review whether preview routes are appropriately restricted in production environments.