RubyGems (Ruby)Worst: High6 advisories
view_component: known vulnerabilities
view_component has 6 reviewed security advisories in the GitHub Advisory Database — 2 high, 4 moderate. The most recent was published 2026-07-15. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the view_component versions running across your servers, containers and images, and ranks what to patch first.
How to fix view_component
Upgrade view_component to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):
bundle update view_component to 4.12.0 (or gem install view_component -v 4.12.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (6)
ViewComponent: around_render HTML-Safety Bypass
High 8.7 CWE-79
— Affected: from 4.0.0 up to 4.12.0. Fixed in 4.12.0. Published 2026-07-15. GHSA-97jw-64cj-jc58 · CVE-2026-54498
ViewComponent: Reused Component Instances Retain Stale Render Context
Moderate 6.8 CWE-362 CWE-488 CWE-668
— Affected: from 4.0.0 up to 4.12.0. Fixed in 4.12.0. Published 2026-07-15. GHSA-9h85-g7w3-rh49 · CVE-2026-54497
view_component: Preview Route Can Dispatch Inherited Helper Methods
Moderate 6.5 CWE-277 CWE-749
— Affected: from 3.0.0 up to 4.9.0. Fixed in 4.9.0. Published 2026-05-26. GHSA-7f3r-gwc9-2995 · CVE-2026-44836
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Moderate 5.9 CWE-187 CWE-22
— Affected: from 3.0.0 up to 4.9.0. Fixed in 4.9.0. Published 2026-05-26. GHSA-hg3h-g7xc-f7vp · CVE-2026-44837
view_component Cross-site Scripting vulnerability
Moderate 6.1 CWE-79
— Affected: before 2.83.0. Fixed in 2.83.0. Published 2024-01-04. GHSA-wf2x-8w6j-qw37 · CVE-2024-21636
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component
High 8.1 CWE-79
— Affected: from 2.32.0 up to 2.49.1. Fixed in 2.49.1. Published 2022-03-02. GHSA-cm9w-c4rj-r2cf · CVE-2022-24722
Find view_component across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.