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
| Vector | AV: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
Affected Products
Rails-Html-Sanitizer