# CVE-2022-32209: Rails::Html::Sanitizer vulnerable to Cross-site Scripting

Source: https://junglewise.ai/threats/cve-2022-32209-rails-html-sanitizer-vulnerable-to-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-25  
License: CC BY 4.0 with a link back

CVE-2022-32209 · Severity: low · CVSS 3.1 · Published 2022-06-25

Rails::Html::Sanitizer vulnerable to Cross-site Scripting

Technologies: [rails-html-sanitizer (RubyGems)](https://junglewise.ai/threats/technologies/rails-html-sanitizer). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2022-32209 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-32209 being exploited in the wild.

**How severe is CVE-2022-32209?** Low severity, with a CVSS score of 3.1, published 25 June 2022.

**Which products and versions are affected?** rails-html-sanitizer (RubyGems) ECOSYSTEM:introduced=0,fixed=1.4.3.

**Is there a fix for CVE-2022-32209?** Yes. rails-html-sanitizer (RubyGems): upgrade to 1.4.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-32209?** Check whether you run rails-html-sanitizer (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- rails-html-sanitizer (RubyGems): upgrade to 1.4.3 or later

  ```sh
  bundle update rails-html-sanitizer
  ```


## Affected products

- rails-html-sanitizer (RubyGems) ECOSYSTEM:introduced=0,fixed=1.4.3

## Identifiers

- CVE-2022-32209
- GHSA-pg8v-g4xq-hww9

## Related threats

- [Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations](https://junglewise.ai/threats/cve-2026-73648-rails-html-sanitizers-possible-xss-vulnerability-with-certain)
- [rails-html-sanitizer has XSS vulnerability with certain configurations](https://junglewise.ai/threats/cve-2024-53989-rails-html-sanitizer-has-xss-vulnerability-with-certain)
- [rails-html-sanitizer has XSS vulnerability with certain configurations](https://junglewise.ai/threats/cve-2024-53987-rails-html-sanitizer-has-xss-vulnerability-with-certain)
- [rails-html-sanitizer has XSS vulnerability with certain configurations](https://junglewise.ai/threats/cve-2024-53988-rails-html-sanitizer-has-xss-vulnerability-with-certain)
- [rails-html-sanitizer has XSS vulnerability with certain configurations](https://junglewise.ai/threats/cve-2024-53986-rails-html-sanitizer-has-xss-vulnerability-with-certain)
