CVE-2026-44836CWE-749

view_component: Preview Route Can Dispatch Inherited Helper Methods

Medium · published May 26, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
29.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00371 · 29.8th percentile
Weakness
CWE-749 · Exposed Dangerous Method or Function
Published
2026-05-26T19:43Z
EPSS history
Timeline
  • 26 MAY 19:43Z
    view_component: Preview Route Can Dispatch Inherited Helper Methods
    cvelistv5