8.1

CVE-2022-24722: github view_component Cross-site Scripting

CVSS: 8.1v3.1HighModified
AliasesGHSA-cm9w-c4rj-r2cf
Published 02-03-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-24722 is a high (CVSS 8.1) Cross-site Scripting vulnerability in github view_component. EPSS estimates a 1.09% chance of exploitation in the next 30 days, higher than 64.9% of scored vulnerabilities.

Overall risk
33/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
1.09%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 02-03-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.09%

Chance of exploitation in the next 30 days

Percentile

65%

Versus all other CVEs

30-day change

0.00 pp

From 1.09% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.09%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Github2 products
RubyGems1 product
  • view_component≥ 2.31.0, < 2.31.2 | ≥ 2.32.0, < 2.49.1

2 vendors · 3 products

References

7 links