
CVE catalog
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
- Severity
- Medium · CVSS 6.5
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.34% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-view-component | sid | 4.16.0-1 | fixed |
| Debian | ruby-view-component | forky | 4.16.0-1 | fixed |
| Debian | ruby-view-component | bookworm | 2.74.1-1 | vulnerable |
| Cpe | ruby-view-component | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-view-component | source | sid | 4.12.0-1 | not yet assigned | Not reported | [1138259] |
| Debian | ruby-view-component | source | forky | 4.12.0-1 | not yet assigned | Not reported | [1138259] |
| Debian | ruby-view-component | source | bookworm | (unfixed) | not yet assigned | Not reported | [1138259] |
Notes
[bookworm] ruby-view-component: Contrib not supported
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-view-component]Affected
Details (2)
2.74.1-1· all · bookwormAffected
nvd · ruby-view-component · debian · bookworm; nvd · ruby-view-component · debian · 12
2.74.1-1· all · bookwormAffected
nvd · ruby-view-component · debian · bookworm; nvd · ruby-view-component · debian · 12
Observed: