PT-2018-16163 · Ruby · Rails-Html-Sanitizer

Rafaelfranca

·

Published

2018-03-30

·

Updated

2026-03-13

·

CVE-2018-3741

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions rails-html-sanitizer gem versions prior to 1.0.4
Description The issue allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, potentially leading to an XSS attack on target applications.
Recommendations For versions prior to 1.0.4, upgrade to version 1.0.4 or later to resolve the issue. As a temporary workaround, consider using one of the provided workarounds until an upgrade is possible.

Fix

XSS

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

Weakness Enumeration

Related Identifiers

CVE-2018-3741
GHSA-PX3R-JM9G-C8W8
OPENSUSE-SU-2024:11349-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-2019:0212
SUSE-SU-2019:2182-1

Affected Products

Rails-Html-Sanitizer