Exposed Dangerous Method or Function Affecting ruby-view-component package, versions <4.12.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.34% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-RUBYVIEWCOMPONENT-17099612
  • published30 May 2026
  • disclosed26 May 2026

Introduced: 26 May 2026

CVE-2026-44836  (opens in a new tab)
CWE-749  (opens in a new tab)

How to fix?

Upgrade Debian:14 ruby-view-component to version 4.12.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-view-component package and not the ruby-view-component package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the preview route derives an example name from the URL and calls it with public_send. The code does not verify that the requested method is one of the preview examples explicitly defined by the preview class. As a result, inherited public methods on ViewComponent::Preview are route-reachable. The most important one is render_with_template, which accepts template: and locals:. Those values can come from request params and are later passed to Rails as render template:. If previews are exposed, an attacker can render internal Rails templates that are not otherwise routable. This vulnerability is fixed in 4.9.0.