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

6.1 · MEDIUM
Published Jun 24, 2022 rubyonrails CWE-79 EPSS 29.35% (98th pctl)

Overview

CVE-2022-32209 is a medium-severity vulnerability affecting rubyonrails rails_html_sanitizers. It was published on June 24, 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

# Possible XSS Vulnerability in Rails::Html::SanitizerThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.This vulnerability has been assigned the CVE identifier CVE-2022-32209.Versions Affected: ALLNot affected: NONEFixed Versions: v1.4.3## ImpactA 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 to allow both `select` and `style` elements.Code is only impacted if allowed tags are being overridden. This may be done via application configuration:```ruby# In config/application.rbconfig.action_view.sanitized_allowed_tags = ["select", "style"]```see https://guides.rubyonrails.org/configuring.html#configuring-action-viewOr it may be done with a `:tags` option to the Action View helper `sanitize`:```<%= sanitize @comment.body, tags: ["select", "style"] %>```see https://api.rubyonrails.org/classes/ActionView/H

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.3 Affected

Frequently Asked Questions

What is CVE-2022-32209?

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

How severe is CVE-2022-32209?

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

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

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