PT-2022-4877 · Ruby On Rails+5 · Rails-Html-Sanitizer+5

Windshock

·

Published

2022-04-05

·

Updated

2026-03-13

·

CVE-2022-32209

CVSS v2.0

6.4

Medium

VectorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Rails::Html::Sanitizer versions prior to 1.4.3
Description The issue is related to the incorrect use of select and style elements when overriding allowed tags in the HTML sanitizer for Rails applications. This can allow a remote attacker to conduct cross-site scripting attacks. The vulnerability is exploited when the application developer has overridden the sanitizer's allowed tags to include both select and style elements. This can be done through various means, such as application configuration, using the sanitize helper with a :tags option, or directly with Rails::Html::SafeListSanitizer.
Recommendations For versions prior to 1.4.3, upgrade to version 1.4.3 or later. As a temporary workaround, consider removing either select or style from the overridden allowed tags to prevent exploitation.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2023-1337
ALT-PU-2023-4269
ALT-PU-2024-7815
BDU:2022-06004
CVE-2022-32209
DLA-3227-1
DLA-3566-1
DLA-3902-1
GHSA-PG8V-G4XQ-HWW9
OPENSUSE-SU-2022_2870-1
OPENSUSE-SU-2024:12145-1
OPENSUSE-SU-2024:13137-1
OPENSUSE-SU-2024:14175-1
OPENSUSE-SU-2025:15125-1
OPENSUSE-SU-2026:10361-1
RHSA-2022:8506
RLSA-2022:8506
SUSE-SU-2022:2870-1
SUSE-SU-2022:2885-1
SUSE-SU-2022_2870-1

Affected Products

Alt Linux
Astra Linux
Rails-Html-Sanitizer
Red Os
Rocky Linux
Suse