> CVE-2022-24722 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-03-02 23:15
MODIFIED
2024-11-21 06:50
CVSS_SCORE V3
8.1
EPSS (Prob. Exploit)
1.09%
Top 34.0%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> 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.

> AFFECTED_PRODUCTS

GitHub - Viewcomponent
>= 2.31.0 < 2.31.2
GitHub - Viewcomponent
>= 2.32.0 < 2.49.1

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-cm9w-c4rj-r2cf HIGH

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component

AFFECTED PACKAGES:
RUBYGEMS / view_component
>= 2.32.0, < 2.49.1
Fixed in: 2.49.1
RUBYGEMS / view_component
>= 2.31.0, < 2.31.2
Fixed in: 2.31.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Cross-site Scripting in view_component

AFFECTED PACKAGES:
Unknown / Unknown
21 versions affected
ALIASES:
GHSA-cm9w-c4rj-r2cf

> HISTORIQUE DES MODIFICATIONS

Première apparition
02/03/2022 23:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:32
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME