Skip to main content
← All vulnerabilities
CVE-2018-3741GHSA-PX3R-JM9G-C8W8

There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.4
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Rails rails-html-sanitizer

    through 1.0.3

  • rails-html-sanitizerRubyGems

    fixed in 1.0.4

References 1

GitHub · rails/rails-html-sanitizer