CVE-2026-44836 Details
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.
A vulnerability exists in the View Component framework for Ruby on Rails, specifically in versions 3.0.0 prior to 4.9.0. The issue arises in the preview route, which automatically derives example names from the URL and invokes them using public_send. This process lacks proper validation to ensure that the requested method is one of the explicitly defined preview examples. Consequently, inherited public methods from ViewComponent::Preview become accessible through the route. The most critical of these methods is render_with_template, which accepts template and locals parameters. These values can be sourced from request parameters and are subsequently passed to Rails as render template. If previews are exposed, an attacker could leverage this vulnerability to render internal Rails templates that are not normally accessible via routing.
Users can upgrade to View Component version 4.9.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 26, 2026CISA-ADP
Assessed May 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-749 | Exposed Dangerous Method or Function | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ViewComponent | >= 3.0.0, <= 4.9.0 (semver) |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 27, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |
Volerion