# CVE-2026-44836: view_component: Preview Route Can Dispatch Inherited Helper Methods

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T23:33:14.000Z
- Modified: 2026-09-10T03:50:45.954Z
- Also known as: GHSA-7f3r-gwc9-2995
- Weaknesses: CWE-277, CWE-749
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- ViewComponent view_component: >= 3.0.0, < 4.9.0
- view_component (RubyGems): from 3.0.0 before 4.9.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44836> (advisory)
- <https://github.com/ViewComponent/view_component> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/view_component/CVE-2026-44836.yml> (web)

## Sources

- CVE List: [CVE-2026-44836](https://www.cve.org/CVERecord?id=CVE-2026-44836), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-7f3r-gwc9-2995](https://github.com/advisories/GHSA-7f3r-gwc9-2995), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44836](https://nvd.nist.gov/vuln/detail/CVE-2026-44836), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-44836 · Whole record: https://cve.day/CVE-2026-44836.json · Rebuilt by cve.day 2026-11-25T22:59:22.380Z
