๐Ÿ” CVE Alert

CVE-2026-44836

MEDIUM 6.5

view_component: Preview Route Can Dispatch Inherited Helper Methods

CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
2th

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.

CWE CWE-749
Vendor viewcomponent
Product view_component
Published May 26, 2026
Last Updated May 27, 2026
Stay Ahead of the Next One

Get instant alerts for viewcomponent view_component

Be the first to know when new medium vulnerabilities affecting viewcomponent view_component are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Affected Versions

ViewComponent / view_component
>= 3.0.0, < 4.9.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995