CVE-2026-44836: CWE-749: Exposed Dangerous Method or Function in ViewComponent view_component
A vulnerability in the view_component Ruby on Rails framework versions 3.0.0 through 4.8.x allows route access to inherited public methods on ViewComponent::Preview due to insufficient validation of preview example method names. This enables attackers to invoke methods like render_with_template with parameters from the request, potentially rendering internal Rails templates that are not normally accessible. The issue is fixed starting in version 4.9.0.
AI Analysis
Technical Summary
The view_component framework for Ruby on Rails versions 3.0.0 to before 4.9.0 has a vulnerability where the preview route uses public_send to call methods derived from the URL without verifying that the method is explicitly defined as a preview example. This allows inherited public methods on ViewComponent::Preview, such as render_with_template, to be invoked via the route. Since render_with_template accepts template and locals parameters from the request and passes them to Rails' render template functionality, an attacker can render internal templates that are otherwise not routable. This vulnerability is addressed in version 4.9.0.
Potential Impact
If previews are exposed, an attacker with at least low privileges can invoke internal rendering methods to access and render internal Rails templates that are not intended to be publicly accessible. This can lead to unauthorized disclosure of internal template content. The CVSS score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and high confidentiality impact without integrity or availability impact.
Mitigation Recommendations
This vulnerability is fixed in view_component version 4.9.0. Users should upgrade to version 4.9.0 or later to remediate this issue. Since no official patch or temporary fix details are provided beyond the version fix, upgrading is the recommended action. If upgrading is not immediately possible, restricting access to preview routes to trusted users or disabling preview routes can reduce exposure.
CVE-2026-44836: CWE-749: Exposed Dangerous Method or Function in ViewComponent view_component
Description
A vulnerability in the view_component Ruby on Rails framework versions 3.0.0 through 4.8.x allows route access to inherited public methods on ViewComponent::Preview due to insufficient validation of preview example method names. This enables attackers to invoke methods like render_with_template with parameters from the request, potentially rendering internal Rails templates that are not normally accessible. The issue is fixed starting in version 4.9.0.
CVSS v3.1
Score 6.5medium
Affected software
pkg:gem/view_component/view_componentRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The view_component framework for Ruby on Rails versions 3.0.0 to before 4.9.0 has a vulnerability where the preview route uses public_send to call methods derived from the URL without verifying that the method is explicitly defined as a preview example. This allows inherited public methods on ViewComponent::Preview, such as render_with_template, to be invoked via the route. Since render_with_template accepts template and locals parameters from the request and passes them to Rails' render template functionality, an attacker can render internal templates that are otherwise not routable. This vulnerability is addressed in version 4.9.0.
Potential Impact
If previews are exposed, an attacker with at least low privileges can invoke internal rendering methods to access and render internal Rails templates that are not intended to be publicly accessible. This can lead to unauthorized disclosure of internal template content. The CVSS score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and high confidentiality impact without integrity or availability impact.
Mitigation Recommendations
This vulnerability is fixed in view_component version 4.9.0. Users should upgrade to version 4.9.0 or later to remediate this issue. Since no official patch or temporary fix details are provided beyond the version fix, upgrading is the recommended action. If upgrading is not immediately possible, restricting access to preview routes to trusted users or disabling preview routes can reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T21:21:48.352Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a16041de29bf47b505ea063
Added to database: 05/26/2026, 20:35:41 UTC
Last enriched: 06/02/2026, 21:20:27 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.