Bugzilla – Bug 1206435
VUL-0: CVE-2022-23519: rubygem-rails-html-sanitizer: XSS vulnerability with certain configurations of Rails::Html::Sanitizer
Last modified: 2023-09-29 08:19:31 UTC
CVE-2022-23519 rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, a 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 in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-23519 https://www.cve.org/CVERecord?id=CVE-2022-23519 https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-9h9g-93gc-623h https://hackerone.com/reports/1656627
SUSE-SU-2023:3534-1: An update that solves four vulnerabilities can now be installed. Category: security (important) Bug References: 1206433, 1206434, 1206435, 1206436 CVE References: CVE-2022-23517, CVE-2022-23518, CVE-2022-23519, CVE-2022-23520 Sources used: SUSE OpenStack Cloud Crowbar 8 (src): rubygem-rails-html-sanitizer-1.0.3-8.14.1 SUSE OpenStack Cloud Crowbar 9 (src): rubygem-rails-html-sanitizer-1.0.3-8.14.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:3714-1: An update that solves four vulnerabilities can now be installed. Category: security (important) Bug References: 1206433, 1206434, 1206435, 1206436 CVE References: CVE-2022-23517, CVE-2022-23518, CVE-2022-23519, CVE-2022-23520 Sources used: openSUSE Leap 15.4 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 openSUSE Leap 15.5 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 SUSE Linux Enterprise High Availability Extension 15 SP1 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 SUSE Linux Enterprise High Availability Extension 15 SP2 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 SUSE Linux Enterprise High Availability Extension 15 SP3 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 SUSE Linux Enterprise High Availability Extension 15 SP4 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 SUSE Linux Enterprise High Availability Extension 15 SP5 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.