Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-81946ACE-6961-4488-A164-22D58EBC8D66 (CVE-2018-3741): rails-html-sanitizer -- possible XSS vulnerability

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-81946ACE-6961-4488-A164-22D58EBC8D66 (CVE-2018-3741): rails-html-sanitizer -- possible XSS vulnerability

Severity
4
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:N)
Published
03/22/2018
Created
07/25/2018
Added
03/25/2018
Modified
05/07/2019

Description

There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.

Solution(s)

  • freebsd-upgrade-package-rubygem-rails-html-sanitizer

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;