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

7.2 · HIGH
Published Dec 14, 2022 rubyonrails CWE-79 EPSS 0.99% (60th pctl)

Overview

CVE-2022-23519 is a high-severity vulnerability affecting rubyonrails rails_html_sanitizers. It was published on December 14, 2022 and has a CVSS 3.1 base score of 7.2 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.2, rated HIGH. 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, a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags.

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-23519?

CVE-2022-23519 is a high-severity vulnerability affecting rubyonrails rails_html_sanitizers. It was published on December 14, 2022 and has a CVSS 3.1 base score of 7.2 (HIGH).

How severe is CVE-2022-23519?

This vulnerability has a CVSS 3.1 base score of 7.2, rated HIGH. 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-23519?

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-23519?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-23519 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.