Approved changes feed: RSS · Atom

cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorViewcomponent (5f150c96-079f-59f9-b685-13aac59bbe99)
ProductView Component (1cd769ab-868b-5000-9d14-d0b581d7a51a)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:deb/debian/ruby-view-component purl2cpe 2026-06-01 10:11:01.917019
pkg:deb/ubuntu/ruby-view-component purl2cpe 2026-06-01 10:11:01.917022
pkg:gem/view_component purl2cpe 2026-06-01 10:11:01.917024
pkg:github/viewcomponent/view_component purl2cpe 2026-06-01 10:11:01.917027
pkg:rpm/opensuse/rubygem-view_component purl2cpe 2026-06-01 10:11:01.917030

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-54498 vulnerable 2026-07-29 01:00:27.861325 view_component: around_render HTML-Safety Bypass
HIGH (8.7)
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 4.0.0 until 4.12.0, ViewComponent::Base#around_render can return HTML-unsafe strings that bypass the escaping behavior applied to normal #call return values. This creates an XSS risk when downstream applications use around_render to wrap, replace, instrument, or conditionally return content that includes user-controlled data, and ViewComponent::Collection#render_in can amplify the issue by joining per-item results and marking the entire output html_safe, converting raw unsafe output into an ActiveSupport::SafeBuffer. This issue is fixed in version 4.12.0.
Published: 2026-07-17T20:46:52.176Z
Updated: 2026-07-20T17:38:56.324Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-54497 vulnerable 2026-07-29 01:00:27.860941 view_component: Reused Component Instances Retain Stale Render Context
MEDIUM (6.8)
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 4.0.0 until 4.12.0, ViewComponent::Base instances retain render-scoped objects across calls to render_in; if the same component, collection, or spacer component instance is reused across requests, users, tenants, or threads, later renders can use stale helpers, controller, request, view_flow, format/variant details, and slot child context from an earlier render. This can cause authorization-aware components to render privileged UI for a lower-privileged user, generate links using a stale Host header, leak slot/helper state, and mix request context under concurrent rendering. This issue is fixed in version 4.12.0.
Published: 2026-07-17T20:45:28.338Z
Updated: 2026-07-20T13:46:20.930Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-44837 vulnerable 2026-06-08 08:05:11.323989 view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
MEDIUM (5.9)
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 system test entrypoint canonicalizes a user-controlled file path with File.realpath, then checks whether the resolved path starts with the temp directory path. This is not a safe containment check because sibling directories can share the same string prefix. This vulnerability is fixed in 4.9.0.
Published: 2026-05-26T19:40:47.661Z
Updated: 2026-05-28T14:04:27.716Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-44836 vulnerable 2026-06-08 08:05:11.323702 view_component: Preview Route Can Dispatch Inherited Helper Methods
MEDIUM (6.5)
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.
Published: 2026-05-26T19:43:58.008Z
Updated: 2026-05-27T13:21:54.259Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-21636 vulnerable 2026-06-08 06:27:36.261903 view_component Cross-site Scripting vulnerability
MEDIUM (6.1)
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. Versions prior to 3.9.0 and 2.83.0 have a cross-site scripting vulnerability that has the potential to impact anyone rendering a component directly from a controller with the view_component gem. Note that only components that define a `#call` method (i.e. instead of using a sidecar template) are affected. The return value of the `#call` method is not sanitized and can include user-defined content. In addition, the return value of the `#output_postamble` methodis not sanitized, which can also lead to cross-site scripting issues. Versions 3.9.0 and 2.83.0 have been released and fully mitigate both the `#call` and the `#output_postamble` vulnerabilities. As a workaround, sanitize the return value of `#call`.
Published: 2024-01-04T20:09:08.564Z
Updated: 2025-06-17T20:29:11.989Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.