6.1

CVE-2022-32209: debian debian_linux Cross-site Scripting

CVSS: 6.1v3.1MediumModified
AliasesSUSE-SU-2022:2870-1SUSE-SU-2022:2885-1UBUNTU-CVE-2022-32209
Published 24-06-2022Last modified 03-11-2025

Vulnerability summary

CVE-2022-32209 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in debian debian_linux. EPSS estimates a 30.23% chance of exploitation in the next 30 days, higher than 98.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
30.23%
0%100%
High · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 7 · Related 5

Timeline

  1. 24-06-2022
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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/Helpers/SanitizeHelper.html#method-i-sanitizeOr it may be done with Rails::Html::SafeListSanitizer directly:```ruby# class-level optionRails::Html::SafeListSanitizer.allowed_tags = ["select", "style"]```or```ruby# instance-level optionRails::Html::SafeListSanitizer.new.sanitize(@article.body, tags: ["select", "style"])```All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately.## ReleasesThe FIXED releases are available at the normal locations.## WorkaroundsRemove either `select` or `style` from the overridden allowed tags.## CreditsThis vulnerability was responsibly reported by [windshock](https://hackerone.com/windshock?type=user).

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

30.23%

Chance of exploitation in the next 30 days

Percentile

98%

Versus all other CVEs

30-day change

0.00 pp

From 30.23% on 19-09-2026

19-09-202619-10-2026
EPSS score
30.23%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (hackerone.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Suse7 products
  • rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15< 1.0.4-150000.4.3.1
  • rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP1< 1.0.4-150000.4.3.1
  • rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP2< 1.0.4-150000.4.3.1
  • rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP3< 1.0.4-150000.4.3.1
  • rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP4< 1.0.4-150000.4.3.1
Debian2 products
  • ruby-rails-html-sanitizer< 1.0.4-1+deb10u1 | < 1.4.3-0.1
  • debian_linuxEOL10.0
Opensuse2 products
  • rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.3< 1.0.4-150000.4.3.1
  • rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.4< 1.0.4-150000.4.3.1
Fedoraproject1 product
RubyGems1 product
  • rails-html-sanitizer< 1.4.3
Rubyonrails1 product
Ubuntu1 product
  • ruby-rails-html-sanitizerAll versions (No fix recorded)

7 vendors · 15 products

References

22 links
Show all 22 references