Back to list

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

GHSA · GitHub · CVE-2026-44836

ID
CVE-2026-44836
Date
Updated
Activity
Source
GHSA
Vendor
GitHub
Threat
medium
CVSS
6.5

Summary

### Summary 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…

Product

rubygems: view_component

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories