CVE-2026-44836
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
view_componentRubyGems | >= 3.0.0, < 4.9.0 | 4.9.0 |
Affected products
8- osv-coords8 versionspkg:apk/chainguard/gitlab-rails-ce-18.11pkg:apk/chainguard/gitlab-rails-ce-18.3pkg:apk/chainguard/gitlab-rails-ce-18.5pkg:apk/chainguard/gitlab-rails-ce-18.6pkg:apk/chainguard/gitlab-rails-ce-fips-18.3pkg:apk/chainguard/gitlab-rails-ce-fips-18.5pkg:apk/chainguard/gitlab-rails-ce-fips-18.8pkg:gem/view_component
< 18.11.2-r1+ 7 more
- (no CPE)range: < 18.11.2-r1
- (no CPE)range: < 18.3.6-r6
- (no CPE)range: < 18.5.5-r3
- (no CPE)range: < 18.6.6-r4
- (no CPE)range: < 18.3.6-r7
- (no CPE)range: < 18.5.5-r3
- (no CPE)range: < 18.8.9-r1
- (no CPE)range: >= 3.0.0, < 4.9.0
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.