Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-21636— view_component Cross-site Scripting vulnerability

Quick assessment

Affected
ViewComponent view_component
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ViewComponent是用于在 Ruby on Rails 中构建可重用、可测试和封装视图组件的框架。 ViewComponent 3.9.0之前版本存在跨站脚本漏洞,该漏洞源于view_component-gem组件存在跨站脚本(XSS)漏洞。

CVSS 6.1 · Medium EPSS 0.50% · P41
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-21636

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
view_component Cross-site Scripting vulnerability
Source: CVE Program / CVE List V5
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`.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
ViewComponent 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ViewComponent是用于在 Ruby on Rails 中构建可重用、可测试和封装视图组件的框架。 ViewComponent 3.9.0之前版本存在跨站脚本漏洞,该漏洞源于view_component-gem组件存在跨站脚本(XSS)漏洞。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ViewComponent view_component >= 3.0.0, < 3.9.0 -

II. Public POCs for CVE-2024-21636

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-21636

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-21636 (4)

Vendor Advisories for CVE-2024-21636 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-21636

No comments yet


Leave a comment