CVE-2024-21636
Ruby on Rails View Component Cross-Site Scripting Vulnerability
Description
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`.
INFO
Published Date :
Jan. 4, 2024, 8:15 p.m.
Last Modified :
Nov. 21, 2024, 8:54 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.7
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21636
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21636
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-21636
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017 Added Reference https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697 Added Reference https://github.com/ViewComponent/view_component/pull/1950 Added Reference https://github.com/ViewComponent/view_component/pull/1962 Added Reference https://github.com/ViewComponent/view_component/security/advisories/GHSA-wf2x-8w6j-qw37 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Jan. 10, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017 No Types Assigned https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017 Patch Changed Reference Type https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697 No Types Assigned https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697 Patch Changed Reference Type https://github.com/ViewComponent/view_component/pull/1950 No Types Assigned https://github.com/ViewComponent/view_component/pull/1950 Exploit, Issue Tracking, Patch Changed Reference Type https://github.com/ViewComponent/view_component/pull/1962 No Types Assigned https://github.com/ViewComponent/view_component/pull/1962 Issue Tracking Changed Reference Type https://github.com/ViewComponent/view_component/security/advisories/GHSA-wf2x-8w6j-qw37 No Types Assigned https://github.com/ViewComponent/view_component/security/advisories/GHSA-wf2x-8w6j-qw37 Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* versions up to (excluding) 2.83.0 *cpe:2.3:a:viewcomponent:view_component:*:*:*:*:*:ruby:*:* versions from (including) 3.0.0 up to (excluding) 3.9.0 -
CVE Modified by [email protected]
Jan. 09, 2024
Action Type Old Value New Value Changed Description view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. Versions prior to 3.9.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 has been released and fully mitigates both the `#call` and the `#output_postamble` vulnerabilities. As a workaround, sanitize the return value of `#call`. 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`. Added Reference GitHub, Inc. https://github.com/ViewComponent/view_component/pull/1962 [No types assigned] Added Reference GitHub, Inc. https://github.com/ViewComponent/view_component/commit/c43d8bafa7117cbce479669a423ab266de150697 [No types assigned] -
CVE Received by [email protected]
Jan. 04, 2024
Action Type Old Value New Value Added Description view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. Versions prior to 3.9.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 has been released and fully mitigates both the `#call` and the `#output_postamble` vulnerabilities. As a workaround, sanitize the return value of `#call`. Added Reference GitHub, Inc. https://github.com/ViewComponent/view_component/security/advisories/GHSA-wf2x-8w6j-qw37 [No types assigned] Added Reference GitHub, Inc. https://github.com/ViewComponent/view_component/pull/1950 [No types assigned] Added Reference GitHub, Inc. https://github.com/ViewComponent/view_component/commit/0d26944a8d2730ea40e60eae23d70684483e5017 [No types assigned] Added CWE GitHub, Inc. CWE-79 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21636
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21636
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.50 }} 0.13%
score
0.64828
percentile