CVE-2018-3741
CVE-2018-3741
CVSS 6.1 · Medium · EPSS 1.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- rails-html-sanitizerNo fix published
- ruby-rails-html-sanitizer Debian 12Update to 1.0.4-1
- ruby-rails-html-sanitizer Debian 13Update to 1.0.4-1
- ruby-rails-html-sanitizer Debian 14Update to 1.0.4-1
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-rails-html-sanitizer"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:10361-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15125-1 · openSUSE Tumbleweed ·
- RHSA-2019:0212 · Red Hat cloudforms managementengine 5.10 el7 ·
- openSUSE-SU-2024:14175-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:12145-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:13137-1 · openSUSE Tumbleweed ·
- SUSE-SU-2019:2182-1 · SUSE Enterprise Storage 4, SUSE OpenStack Cloud 7, SUSE OpenStack Cloud Crowbar 8, SUSE OpenStack Cloud Crowbar 9 ·
Affected products and versions
rails-html-sanitizer
- Versions
- <= 1.0.3: Affected
No fix published
ruby-rails-html-sanitizer Debian 12
- Affected ranges
- ECOSYSTEM: < 1.0.4-1
Update to 1.0.4-1
ruby-rails-html-sanitizer Debian 13
- Affected ranges
- ECOSYSTEM: < 1.0.4-1
Update to 1.0.4-1
ruby-rails-html-sanitizer Debian 14
- Affected ranges
- ECOSYSTEM: < 1.0.4-1
Update to 1.0.4-1
rails-html-sanitizer RubyGems
- Versions
- 1.0.0
- 1.0.1
- 1.0.2
- 1.0.3
- Affected ranges
- ECOSYSTEM: < 1.0.4
Update to 1.0.4
ruby-rails-html-sanitizer Ubuntu 16.04 LTS
- Versions
- 1.0.2-1
- 1.0.3-1
- 1.0.3-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published