RubySec

Providing security resources for the Ruby community

CVE-2018-3741 (rails-html-sanitizer): XSS vulnerability in rails-html-sanitizer

ADVISORIES

GEM

rails-html-sanitizer

SEVERITY

CVSS v3.x: 6.1 (Medium)

PATCHED VERSIONS

  • >= 1.0.4

DESCRIPTION

There is a possible XSS vulnerability in rails-html-sanitizer. 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.

RELATED