Bug 2101882 (CVE-2022-32209) - CVE-2022-32209 rubygem-rails-html-sanitizer: possible xss with certain configurations
Summary: CVE-2022-32209 rubygem-rails-html-sanitizer: possible xss with certain config...
Keywords:
Status: NEW
Alias: CVE-2022-32209
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2101883 2102690 2102691
Blocks: 2101884
TreeView+ depends on / blocked
 
Reported: 2022-06-28 15:55 UTC by Marian Rehak
Modified: 2023-07-07 08:28 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A Cross-site scripting (XSS) vulnerability exists in ruby on rails. This issue could allow an attacker to inject content into the application, leading to loss of integrity and confidentiality.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:32:19 UTC

Description Marian Rehak 2022-06-28 15:55:05 UTC
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.

Reference:

https://hackerone.com/reports/1530898

Comment 1 Marian Rehak 2022-06-28 15:55:20 UTC
Created rubygem-rails-html-sanitizer tracking bugs for this issue:

Affects: fedora-all [bug 2101883]

Comment 2 Jun Aruga 2022-06-29 08:21:59 UTC
https://discuss.rubyonrails.org/t/cve-2022-32209-possible-xss-vulnerability-in-rails-sanitizer/80800
Versions Affected: ALL
Fixed Versions: v1.4.3

https://rubygems.org/gems/rails-html-sanitizer
The latest version is 1.4.3.

The current versions are below.
https://src.fedoraproject.org/rpms/rubygem-rails-html-sanitizer
Fedora 37 rubygem-rails-html-sanitizer-1.4.2-2.fc36	
Fedora 36 rubygem-rails-html-sanitizer-1.4.2-2.fc36	
Fedora 35 rubygem-rails-html-sanitizer-1.4.2-1.fc35

The rubygem-rails-html-sanitizer is FTBFS on rawhide, and one of the gems needed by Ruby on Rails.
https://koschei.fedoraproject.org/package/rubygem-rails-html-sanitizer

Comment 5 errata-xmlrpc 2022-11-16 13:32:17 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.12 for RHEL 8

Via RHSA-2022:8506 https://access.redhat.com/errata/RHSA-2022:8506


Note You need to log in before you can comment on or make changes to this bug.