Intel

AIKIDO-2026-419459

view_component is vulnerable to Information Disclosure

Information DisclosureGHSA-8qw7-6phv-7q6p Published 2 days ago

68

Medium Risk

This Affects:

RUBYview_component
4.0.0 - 4.13.0
Fixed in 4.14.0
Are you affected? Scan for Free

TL;DR

ViewComponent populates caller-provided slot state and with_content values on a component instance before render_in runs. The reset that guards reused instances clears controller, helpers, and request context but misses @__vc_set_slots and @__vc_content_set_by_with_content. When the same instance is reused across renders or requests through caching, pooling, or aliasing, one render's slot content and with_content value leak into a later render, exposing user-specific data across contexts. The fix reinstates a guard that raises when an instance is rendered more than once and rebuilds collection child and spacer components per render.

Who does this affect?

You are affected if you run a version in the vulnerable range and reuse the same component instance across multiple renders or requests, for example through caching, instance pooling, or memoization that outlives a single render.

Background info

view_component is vulnerable to Information Disclosure in versions 4.0.0 - 4.13.0.

How to fix this

Upgrade the view_component library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform