SCA: security update for view_component (GHSA-cm9w-c4rj-r2cf)

medium Tenable Self-Hosted Container Security Plugin ID 413967

Description

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

- VIewComponent is a framework for building view components in Ruby on Rails. Versions prior to 2.31.2 and
2.49.1 contain a cross-site scripting vulnerability that has the potential to impact anyone using
translations with the view_component gem. Data received via user input and passed as an interpolation
argument to the `translate` method is not properly sanitized before display. Versions 2.31.2 and 2.49.1
have been released and fully mitigate the vulnerability. As a workaround, avoid passing user input to the
`translate` function, or sanitize the inputs before passing them. (CVE-2022-24722)

See Also

https://github.com/advisories/GHSA-cm9w-c4rj-r2cf

Plugin Details

Severity: Medium

ID: 413967

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 8.67

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

CVSS Score Source: CVE-2022-24722

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

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:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/2/2022

Vulnerability Publication Date: 3/2/2022

Reference Information

CVE: CVE-2022-24722

cwe: CWE-79