Bug 1206435 (CVE-2022-23519) - VUL-0: CVE-2022-23519: rubygem-rails-html-sanitizer: XSS vulnerability with certain configurations of Rails::Html::Sanitizer
Summary: VUL-0: CVE-2022-23519: rubygem-rails-html-sanitizer: XSS vulnerability with c...
Status: RESOLVED FIXED
Alias: CVE-2022-23519
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Paolo Perego
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/350748/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-23519:7.2:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 07:21 UTC by Alexander Bergmann
Modified: 2023-09-29 08:19 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2022-12-15 07:21:21 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
Comment 11 Maintenance Automation 2023-09-05 16:30:25 UTC
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.
Comment 12 Maintenance Automation 2023-09-20 20:30:01 UTC
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.