Upstream information
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).SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having moderate severity.
National Vulnerability Database | |
---|---|
Base Score | 4.3 |
Vector | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Access Vector | Network |
Access Complexity | Medium |
Authentication | None |
Confidentiality Impact | None |
Integrity Impact | Partial |
Availability Impact | None |
National Vulnerability Database | SUSE | |
---|---|---|
Base Score | 6.1 | 5.3 |
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:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
Attack Vector | Network | Network |
Attack Complexity | Low | High |
Privileges Required | None | None |
User Interaction | Required | Required |
Scope | Changed | Unchanged |
Confidentiality Impact | Low | None |
Integrity Impact | Low | High |
Availability Impact | None | None |
CVSSv3 Version | 3.1 | 3.1 |
SUSE Security Advisories:
- SUSE-SU-2022:2870-1, published Tue Aug 23 01:16:41 UTC 2022
- SUSE-SU-2022:2885-1, published Wed Aug 24 16:17:52 UTC 2022
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-EC2 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-EC2 Image SLES15-SP5-SAP-Hardened-GCE Image SLES15-SP6-SAP-Azure-LI-BYOS Image SLES15-SP6-SAP-Azure-LI-BYOS-Production Image SLES15-SP6-SAP-Azure-VLI-BYOS Image SLES15-SP6-SAP-Azure-VLI-BYOS-Production Image SLES15-SP6-SAP-BYOS Image SLES15-SP6-SAP-BYOS-Azure Image SLES15-SP6-SAP-BYOS-EC2 Image SLES15-SP6-SAP-BYOS-GCE Image SLES15-SP6-SAP-Hardened Image SLES15-SP6-SAP-Hardened-Azure Image SLES15-SP6-SAP-Hardened-BYOS Image SLES15-SP6-SAP-Hardened-BYOS-Azure Image SLES15-SP6-SAP-Hardened-BYOS-EC2 Image SLES15-SP6-SAP-Hardened-BYOS-GCE Image SLES15-SP6-SAP-Hardened-EC2 Image SLES15-SP6-SAP-Hardened-GCE |
| |
SUSE Linux Enterprise High Availability Extension 15 SP1 |
| Patchnames: SUSE-SLE-Product-HA-15-SP1-2022-2870 |
SUSE Linux Enterprise High Availability Extension 15 SP2 |
| Patchnames: SUSE-SLE-Product-HA-15-SP2-2022-2870 |
SUSE Linux Enterprise High Availability Extension 15 SP3 |
| Patchnames: SUSE-SLE-Product-HA-15-SP3-2022-2870 |
SUSE Linux Enterprise High Availability Extension 15 SP4 |
| Patchnames: SUSE-SLE-Product-HA-15-SP4-2022-2870 |
SUSE Linux Enterprise High Availability Extension 15 SP5 |
| Patchnames: SUSE Linux Enterprise High Availability Extension 15 SP5 GA rubygem-rails-html-sanitizer-1.0.4-150000.4.3.1 |
SUSE Linux Enterprise High Availability Extension 15 SP6 |
| Patchnames: SUSE Linux Enterprise High Availability Extension 15 SP6 GA rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 |
SUSE Linux Enterprise High Availability Extension 15 |
| Patchnames: SUSE-SLE-Product-HA-15-2022-2870 |
SUSE OpenStack Cloud Crowbar 8 |
| Patchnames: SUSE-OpenStack-Cloud-Crowbar-8-2022-2885 |
SUSE OpenStack Cloud Crowbar 9 |
| Patchnames: SUSE-OpenStack-Cloud-Crowbar-9-2022-2885 |
openSUSE Leap 15.3 |
| Patchnames: openSUSE-SLE-15.3-2022-2870 |
openSUSE Leap 15.4 |
| Patchnames: openSUSE-SLE-15.4-2022-2870 |
openSUSE Tumbleweed |
| Patchnames: openSUSE-Tumbleweed-2024-12145 openSUSE-Tumbleweed-2024-13137 openSUSE-Tumbleweed-2024-14175 |
First public cloud image revisions this CVE is fixed in:
- amazon/suse-sles-sap-15-sp1-byos-v20221110-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp1-v20221207-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp2-byos-v20221109-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp2-v20221109-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp3-byos-v20221108-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp3-v20221108-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp4-byos-v20220915-hvm-ssd-x86_64
- amazon/suse-sles-sap-15-sp4-byos-v20221216-hvm-ssd-x86_64
- google/sles-15-sp1-sap-byos-v20221108-x86-64
- google/sles-15-sp1-sap-v20221108-x86-64
- google/sles-15-sp2-sap-byos-v20221108-x86-64
- google/sles-15-sp2-sap-v20221108-x86-64
- google/sles-15-sp3-sap-byos-v20221108-x86-64
- google/sles-15-sp3-sap-v20221108-x86-64
- google/sles-15-sp4-sap-byos-v20221104-x86-64
- google/sles-15-sp4-sap-v20221104-x86-64
- microsoft/suse-sles-sap-15-sp1-byos-v20221109-x86_64
- microsoft/suse-sles-sap-15-sp1-v20221109-x86_64
- microsoft/suse-sles-sap-15-sp2-byos-v20221108-x86_64
- microsoft/suse-sles-sap-15-sp2-v20221109-x86_64
- microsoft/suse-sles-sap-15-sp3-byos-v20221110-x86_64
- microsoft/suse-sles-sap-15-sp3-v20221109-x86_64
- microsoft/suse-sles-sap-15-sp4-byos-v20221104-x86_64
- microsoft/suse-sles-sap-15-sp4-v20221104-x86_64
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 |
SUSE Linux Enterprise High Availability Extension 15 SP6 | rubygem-rails-html-sanitizer | Released |
openSUSE Leap 15.5 | rubygem-rails-html-sanitizer | Affected |
openSUSE Leap 15.6 | rubygem-rails-html-sanitizer | Affected |
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 | Released |
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.3 | rubygem-rails-html-sanitizer | Affected |
openSUSE Leap 15.4 | rubygem-rails-html-sanitizer | Affected |
SUSE Timeline for this CVE
CVE page created: Fri Jun 24 20:00:14 2022CVE page last modified: Tue Sep 3 19:25:59 2024