Upstream information

CVE-2022-23520 at MITRE

Description

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. 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 issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having moderate severity.

CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 6.1 6.1
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector Network Network
Attack Complexity Low Low
Privileges Required None None
User Interaction Required Required
Scope Changed Changed
Confidentiality Impact Low Low
Integrity Impact Low Low
Availability Impact None None
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1206436 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
Image SLES15-SP1-SAP-Azure-LI-BYOS-Production
Image SLES15-SP1-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP2-SAP-Azure
Image SLES15-SP2-SAP-Azure-LI-BYOS-Production
Image SLES15-SP2-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP2-SAP-BYOS-Azure
Image SLES15-SP2-SAP-BYOS-EC2-HVM
Image SLES15-SP2-SAP-BYOS-GCE
Image SLES15-SP2-SAP-EC2-HVM
Image SLES15-SP2-SAP-GCE
Image SLES15-SP3-SAP-Azure-LI-BYOS-Production
Image SLES15-SP3-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP3-SAP-BYOS-Azure
Image SLES15-SP3-SAP-BYOS-EC2-HVM
Image SLES15-SP3-SAP-BYOS-GCE
Image SLES15-SP4-SAP-Azure-LI-BYOS
Image SLES15-SP4-SAP-Azure-LI-BYOS-Production
Image SLES15-SP4-SAP-Azure-VLI-BYOS
Image SLES15-SP4-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP4-SAP-BYOS
Image SLES15-SP4-SAP-BYOS-Azure
Image SLES15-SP4-SAP-BYOS-EC2
Image SLES15-SP4-SAP-BYOS-GCE
Image SLES15-SP4-SAP-Hardened
Image SLES15-SP4-SAP-Hardened-Azure
Image SLES15-SP4-SAP-Hardened-BYOS
Image SLES15-SP4-SAP-Hardened-BYOS-Azure
Image SLES15-SP4-SAP-Hardened-BYOS-EC2
Image SLES15-SP4-SAP-Hardened-BYOS-GCE
Image SLES15-SP4-SAP-Hardened-GCE
Image SLES15-SP5-SAP-Azure-LI-BYOS
Image SLES15-SP5-SAP-Azure-LI-BYOS-Production
Image SLES15-SP5-SAP-Azure-VLI-BYOS
Image SLES15-SP5-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP5-SAP-BYOS-Azure
Image SLES15-SP5-SAP-BYOS-EC2
Image SLES15-SP5-SAP-BYOS-GCE
Image SLES15-SP5-SAP-Hardened-Azure
Image SLES15-SP5-SAP-Hardened-BYOS-Azure
Image SLES15-SP5-SAP-Hardened-BYOS-EC2
Image SLES15-SP5-SAP-Hardened-BYOS-GCE
Image SLES15-SP5-SAP-Hardened-GCE
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP1
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
Patchnames:
SUSE-SLE-Product-HA-15-SP1-2023-3714
SUSE Linux Enterprise High Availability Extension 15 SP2
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
Patchnames:
SUSE-SLE-Product-HA-15-SP2-2023-3714
SUSE Linux Enterprise High Availability Extension 15 SP3
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
Patchnames:
SUSE-SLE-Product-HA-15-SP3-2023-3714
SUSE Linux Enterprise High Availability Extension 15 SP4
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
Patchnames:
SUSE-SLE-Product-HA-15-SP4-2023-3714
SUSE Linux Enterprise High Availability Extension 15 SP5
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
Patchnames:
SUSE-SLE-Product-HA-15-SP5-2023-3714
SUSE OpenStack Cloud Crowbar 8
  • ruby2.1-rubygem-rails-html-sanitizer >= 1.0.3-8.14.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-8-2023-3534
SUSE OpenStack Cloud Crowbar 9
  • ruby2.1-rubygem-rails-html-sanitizer >= 1.0.3-8.14.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-9-2023-3534
openSUSE Leap 15.4
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
  • ruby2.5-rubygem-rails-html-sanitizer-doc >= 1.0.4-150000.4.6.1
  • ruby2.5-rubygem-rails-html-sanitizer-testsuite >= 1.0.4-150000.4.6.1
Patchnames:
openSUSE-SLE-15.4-2023-3714
openSUSE Leap 15.5
  • ruby2.5-rubygem-rails-html-sanitizer >= 1.0.4-150000.4.6.1
  • ruby2.5-rubygem-rails-html-sanitizer-doc >= 1.0.4-150000.4.6.1
  • ruby2.5-rubygem-rails-html-sanitizer-testsuite >= 1.0.4-150000.4.6.1
Patchnames:
openSUSE-SLE-15.5-2023-3714
openSUSE Tumbleweed
  • ruby3.1-rubygem-rails-html-sanitizer >= 1.5.0-1.1
  • ruby3.2-rubygem-rails-html-sanitizer >= 1.5.0-1.1
Patchnames:
openSUSE Tumbleweed GA ruby3.1-rubygem-rails-html-sanitizer-1.5.0-1.1


First public cloud image revisions this CVE is fixed in:


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise High Availability Extension 15 SP5 rubygem-rails-html-sanitizer Released
openSUSE Leap 15.5 rubygem-rails-html-sanitizer Released
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise High Availability Extension 15 SP2 rubygem-rails-html-sanitizer Released
SUSE Linux Enterprise High Availability Extension 15 SP3 rubygem-rails-html-sanitizer Released
SUSE Linux Enterprise High Availability Extension 15 SP4 rubygem-rails-html-sanitizer Released
Products past their end of life and not receiving proactive updates anymore.
SUSE Enterprise Storage 2.1 rubygem-rails-html-sanitizer Affected
SUSE Enterprise Storage 3 rubygem-rails-html-sanitizer Affected
SUSE Enterprise Storage 4 rubygem-rails-html-sanitizer Affected
SUSE Linux Enterprise High Availability Extension 15 rubygem-rails-html-sanitizer Unsupported
SUSE Linux Enterprise High Availability Extension 15 SP1 rubygem-rails-html-sanitizer Released
SUSE OpenStack Cloud 6 rubygem-rails-html-sanitizer Affected
SUSE OpenStack Cloud 6-LTSS rubygem-rails-html-sanitizer Affected
SUSE OpenStack Cloud 7 rubygem-rails-html-sanitizer Affected
SUSE OpenStack Cloud Crowbar 8 rubygem-rails-html-sanitizer Released
SUSE OpenStack Cloud Crowbar 9 rubygem-rails-html-sanitizer Released
openSUSE Leap 15.4 rubygem-rails-html-sanitizer Released


SUSE Timeline for this CVE

CVE page created: Wed Dec 14 21:00:19 2022
CVE page last modified: Thu Feb 1 01:43:08 2024