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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-23520— rails-html-sanitizer contains an incomplete fix for an XSS vulnerability

Quick assessment

Affected
rails rails-html-sanitizer
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.

Rails是美国Rails团队的一套基于Ruby语言的开源Web应用框架。 Rails rails-html-sanitizer 1.4.4之前版本存在跨站脚本漏洞,该漏洞源于Rails::Html::Sanitizer 的某些配置可能存在 XSS 漏洞, Rails::Html::Sanitizer 可能允许攻击者注入内容。

CVSS 6.1 · Medium EPSS 1.14% · P66

Possible ATT&CK Techniques 1 AI

T1189 · Drive-by Compromise
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-23520

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
rails-html-sanitizer contains an incomplete fix for an XSS vulnerability
Source: CVE Program / CVE List V5
Vulnerability Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden. This issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.
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
Rails 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Rails是美国Rails团队的一套基于Ruby语言的开源Web应用框架。 Rails rails-html-sanitizer 1.4.4之前版本存在跨站脚本漏洞,该漏洞源于Rails::Html::Sanitizer 的某些配置可能存在 XSS 漏洞, Rails::Html::Sanitizer 可能允许攻击者注入内容。
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
rails rails-html-sanitizer < 1.4.4 -

II. Public POCs for CVE-2022-23520

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-23520

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

Vendor Advisories for CVE-2022-23520 (1)

Other References for CVE-2022-23520 (1)

Same Patch Batch · rails · 2022-12-14 · 4 CVEs total

CVE-2022-23517 7.5 HIGH Inefficient Regular Expression Complexity in rails-html-sanitizer
CVE-2022-23519 7.2 HIGH Possible XSS vulnerability with certain configurations of rails-html-sanitizer
CVE-2022-23518 Improper neutralization of data URIs allows XSS in rails-html-sanitizer

IV. Related Vulnerabilities

V. Comments for CVE-2022-23520

No comments yet


Leave a comment