SCA: security update for view_component (GHSA-wf2x-8w6j-qw37)

medium Tenable Cloud Security Plugin ID 419879

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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`.
(CVE-2024-21636)

See Also

https://github.com/advisories/GHSA-wf2x-8w6j-qw37

Plugin Details

Severity: Medium

ID: 419879

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.8

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2024-21636

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/4/2024

Vulnerability Publication Date: 1/4/2024

Reference Information

CVE: CVE-2024-21636

cwe: CWE-79