CVE-2018-3741 rails-html-sanitizer Cross-site Scripting vulnerability
MediumCVSS 6.1
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-rails-html-sanitizer(Ubuntu 16.04) | = 1.0.2-1; = 1.0.3-1; = 1.0.3-2; All versions | No fix listed | No fix yet |
| debian/ruby-rails-html-sanitizer(Debian 12) | < 1.0.4-1 | 1.0.4-1 | Fixed |
| debian/ruby-rails-html-sanitizer(Debian 13) | < 1.0.4-1 | 1.0.4-1 | Fixed |
| debian/ruby-rails-html-sanitizer(Debian 14) | < 1.0.4-1 | 1.0.4-1 | Fixed |
| rubygems rails-html-sanitizer(RubyGems) | < 1.0.4; = 1.0.0; = 1.0.1; = 1.0.2 +1 more | 1.0.4 | Fixed |
| rubyonrails html sanitizer | <= 1.0.3 | after 1.0.3 | Fixed |
| rails-html-sanitizer | = <= 1.0.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems rails-html-sanitizer(RubyGems) | < 1.0.4 | 1.0.4 |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.1 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.2 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.3 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | < 1.0.4-1 | 1.0.4-1 |
| debian/ruby-rails-html-sanitizer(Debian:13) | < 1.0.4-1 | 1.0.4-1 |
| debian/ruby-rails-html-sanitizer(Debian:14) | < 1.0.4-1 | 1.0.4-1 |
| rubyonrails html sanitizer | <= 1.0.3 | No fix listed |
| rails-html-sanitizer | = <= 1.0.3 | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:16.04) | = 1.0.2-1 | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:16.04) | = 1.0.3-1 | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:16.04) | = 1.0.3-2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com
- github.com product
- Debian Security Tracker CVE-2018-3741 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.openwall.com issue-tracking
- www.cve.org issue-tracking