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 an attacker to invoke inherited public methods on ViewComponent::Preview via the preview route. This occurs because the framework uses public_send on a method name derived from the URL without verifying it is an explicitly defined preview example. The most critical exposed method is render_with_template, which can render internal Rails templates using parameters from the request. This could allow unauthorized rendering of internal templates if previews are exposed. The issue is fixed in version 4. 9.
AI Analysis
Technical Summary
The view_component framework for Ruby on Rails versions from 3.0.0 up to but not including 4.9.0 has a vulnerability where the preview route derives an example name from the URL and calls it using public_send without verifying that the method is explicitly defined as a preview example. This allows route access to inherited public methods on ViewComponent::Preview, notably render_with_template, which accepts template and locals parameters from the request and passes them to Rails' render method. This can lead to rendering of internal Rails templates that are not otherwise accessible via routes. The vulnerability is addressed in version 4.9.0.
Potential Impact
If preview routes are exposed, an attacker with at least low privilege (PR:L) can invoke internal rendering methods to access internal Rails templates, potentially disclosing sensitive information. The vulnerability has a CVSS score of 6.5 (medium severity) with network attack vector, low attack complexity, no user interaction required, and impacts confidentiality but not integrity or availability. There are no known exploits in the wild.
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 links or vendor advisories are provided, verify the upgrade and patch status with the official view_component release notes or repository. Until upgraded, restrict access to preview routes to trusted users only to 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 an attacker to invoke inherited public methods on ViewComponent::Preview via the preview route. This occurs because the framework uses public_send on a method name derived from the URL without verifying it is an explicitly defined preview example. The most critical exposed method is render_with_template, which can render internal Rails templates using parameters from the request. This could allow unauthorized rendering of internal templates if previews are exposed. The issue is fixed in version 4. 9.
CVSS v3.1
Score 6.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The view_component framework for Ruby on Rails versions from 3.0.0 up to but not including 4.9.0 has a vulnerability where the preview route derives an example name from the URL and calls it using public_send without verifying that the method is explicitly defined as a preview example. This allows route access to inherited public methods on ViewComponent::Preview, notably render_with_template, which accepts template and locals parameters from the request and passes them to Rails' render method. This can lead to rendering of internal Rails templates that are not otherwise accessible via routes. The vulnerability is addressed in version 4.9.0.
Potential Impact
If preview routes are exposed, an attacker with at least low privilege (PR:L) can invoke internal rendering methods to access internal Rails templates, potentially disclosing sensitive information. The vulnerability has a CVSS score of 6.5 (medium severity) with network attack vector, low attack complexity, no user interaction required, and impacts confidentiality but not integrity or availability. There are no known exploits in the wild.
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 links or vendor advisories are provided, verify the upgrade and patch status with the official view_component release notes or repository. Until upgraded, restrict access to preview routes to trusted users only to 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: 5/26/2026, 8:35:41 PM
Last enriched: 5/26/2026, 8:49:38 PM
Last updated: 5/27/2026, 4:48:15 AM
Views: 3
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.