Vulnerability in Viewcomponent View Component
CVE-2026-44836
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.004 (29.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 30th percentile — 29.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.004 · change: +0.000
Affected products
- Viewcomponent View Component — versions >= 3.0.0, < 4.9.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-44836?
- CVE-2026-44836 is a medium-severity vulnerability in Viewcomponent View Component, classified under CWE-749. CVSS score: 6.5/10. Published 2026-05-26.
- How severe is CVE-2026-44836?
- Medium severity. CVSS v3 base score is 6.5 out of 10.