{"id":"CVE-2026-44836","published":"2026-05-26T19:43:58Z","modified":"2026-05-27T13:21:54Z","title":"view_component: Preview Route Can Dispatch Inherited Helper Methods","vendor":"ViewComponent","product":"view_component","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.28599,"provenance":"source"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"}],"references":[{"url":"https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":5.72},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"viewcomponent","affectedVersions":[{"vendor":"ViewComponent","product":"view_component","versions":[">= 3.0.0, < 4.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-27T13:21:32.395983Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"view_component","vulnerableRanges":[">=3.0.0, <4.9.0"],"patched":["4.9.0"],"from":["GHSA-7f3r-gwc9-2995"],"provenance":"source"}],"summary":{"text":"The view_component framework's preview route derives an example name from the URL and invokes it with public_send without checking that the method is an explicitly defined preview example, so inherited public methods such as render_with_template become reachable. An attacker who can reach exposed previews, with low privileges required, can pass request-supplied template and locals values through to Rails rendering to display internal templates that are not otherwise routable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:41Z"},"euvd":{"id":"EUVD-2026-31972","exploited":false,"provenance":"source"}}