CVE-2026-44836ViewComponent view_component
Medium 6.5
Follow: this CVE · ViewComponent · ViewComponent view_component We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- Yes
- Published
- May 26, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-749
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for view_component.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | view_component |
≥ 3.0.0 < 4.9.0 |
4.9.0 |
gem "view_component", ">= 4.9.0" |
Per OSV / GitHub Advisories (GHSA-7f3r-gwc9-2995). Check the version in your lockfile before upgrading.
Affected products
- ViewComponent · view_component
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.