Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
ViewComponent view_component
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

view_component是ViewComponent开源的一个用于构建可复用、可测试视图组件的框架。 view_component 3.0.0版本至4.9.0版本存在安全漏洞,该漏洞源于预览路由未验证请求方法是否为预览类明确定义的示例,导致继承的公共方法可被路由访问,攻击者可通过请求参数传递template和locals值,进而渲染内部Rails模板。

CVSS 6.5 · Medium EPSS 0.37% · P29

Affected Version Matrix 1

VendorProduct Version RangeStatus
ViewComponent view_component >= 3.0.0, < 4.9.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-44836

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
view_component: Preview Route Can Dispatch Inherited Helper Methods
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
暴露危险的方法或函数
Source: CVE Program / CVE List V5
Vulnerability Title
view_component 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
view_component是ViewComponent开源的一个用于构建可复用、可测试视图组件的框架。 view_component 3.0.0版本至4.9.0版本存在安全漏洞,该漏洞源于预览路由未验证请求方法是否为预览类明确定义的示例,导致继承的公共方法可被路由访问,攻击者可通过请求参数传递template和locals值,进而渲染内部Rails模板。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ViewComponent view_component >= 3.0.0, < 4.9.0 -

II. Public POCs for CVE-2026-44836

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44836

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-44836 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44836

No comments yet


Leave a comment