Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-24722

8.1 · HIGH
Published Mar 2, 2022 github CWE-79 EPSS 1.09% (63th pctl)

Overview

CVE-2022-24722 is a high-severity vulnerability affecting github viewcomponent. It was published on March 2, 2022 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from github. Update viewcomponent to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
github viewcomponent >= 2.31.0, < 2.31.2 Affected

Frequently Asked Questions

What is CVE-2022-24722?

CVE-2022-24722 is a high-severity vulnerability affecting github viewcomponent. It was published on March 2, 2022 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2022-24722?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-24722?

Check the references section for vendor advisories and patches from github. Update viewcomponent to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-24722?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-24722 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.