Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-23520

6.1 · MEDIUM
Published Dec 14, 2022 rubyonrails CWE-79 EPSS 1.11% (63th pctl)

Overview

CVE-2022-23520 is a medium-severity vulnerability affecting rubyonrails rails_html_sanitizers. It was published on December 14, 2022 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from rubyonrails. Update rails_html_sanitizers to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
rubyonrails rails_html_sanitizers >= 0, < 1.4.4 Affected

Frequently Asked Questions

What is CVE-2022-23520?

CVE-2022-23520 is a medium-severity vulnerability affecting rubyonrails rails_html_sanitizers. It was published on December 14, 2022 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

How severe is CVE-2022-23520?

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-23520?

Check the references section for vendor advisories and patches from rubyonrails. Update rails_html_sanitizers to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-23520?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-23520 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.