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

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

Overview

CVE-2022-23518 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. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.

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 >= 1.0.3, < 1.4.4 Affected
loofah_project loofah >= 2.1.0, < 2.19.1 Affected

Frequently Asked Questions

What is CVE-2022-23518?

CVE-2022-23518 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-23518?

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

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

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