Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gw
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gw
FAQ
What is CVE-2026-44836?
CVE-2026-44836 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 ...
How severe is CVE-2026-44836?
CVE-2026-44836 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-44836?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.