CVE-2026-44836
published medium CVSS 3.1 · 6.5view_component: Preview Route Can Dispatch Inherited Helper Methods
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ViewComponent | — | view_component>= 3.0.0, < 4.9.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ViewComponent | view_component | >= 3.0.0, < 4.9.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-749 CWE-749: Exposed Dangerous Method or Function
References
1Provider assertions
2GitHub_M · cna
view_component: Preview Route Can Dispatch Inherited Helper Methods
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9f3c85fd87812a1d9a2e88696fae48968d31c62cf0bb453004b12489a471629a
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record