CVE catalog

CVE-2026-44836

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

[CVE catalog]

Severity
Medium · CVSS 6.5
Published
Source
[NVD] · [CVE record]
EPSS
0.34% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-view-componentsid4.16.0-1fixed
Debianruby-view-componentforky4.16.0-1fixed
Debianruby-view-componentbookworm2.74.1-1vulnerable
Cperuby-view-componentNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-view-componentsourcesid4.12.0-1not yet assignedNot reported[1138259]
Debianruby-view-componentsourceforky4.12.0-1not yet assignedNot reported[1138259]
Debianruby-view-componentsourcebookworm(unfixed)not yet assignedNot reported[1138259]

[Debian bug #1138259]

Notes

[bookworm] ruby-view-component: Contrib not supported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.74.1-1 · all · bookworm

      Affected

      nvd · ruby-view-component · debian · bookworm; nvd · ruby-view-component · debian · 12

    • 2.74.1-1 · all · bookworm

      Affected

      nvd · ruby-view-component · debian · bookworm; nvd · ruby-view-component · debian · 12

Observed:

References