
CVE catalog
CVE-2018-3741
ruby-rails-html-sanitizer: CVE-2018-3741
- Severity
- Medium · CVSS 6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.25% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-rails-html-sanitizer | sid | 1.7.1-1 | fixed |
| Debian | ruby-rails-html-sanitizer | forky | 1.7.1-1 | fixed |
| Debian | ruby-rails-html-sanitizer | trixie | 1.6.2-1 | fixed |
| Debian | ruby-rails-html-sanitizer | bookworm | 1.4.4-1 | fixed |
| Suse | rubygem-rails-html-sanitizer | openstack cloud 7 | 1.0.3-8.8.1 | fixed |
| Suse | rubygem-rails-html-sanitizer | openstack cloud crowbar 8 | 1.0.3-8.8.1 | fixed |
| Suse | rubygem-rails-html-sanitizer | openstack cloud crowbar 9 | 1.0.3-8.8.1 | fixed |
| Suse | rubygem-rails-html-sanitizer | enterprise storage 4 | 1.0.3-8.8.1 | fixed |
| Ubuntu | ruby-rails-html-sanitizer | 16.04 | 1.0.2-1 | vulnerable |
| Ubuntu | ruby-rails-html-sanitizer | 16.04 | 1.0.3-1 | vulnerable |
| Ubuntu | ruby-rails-html-sanitizer | 16.04 | 1.0.3-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-rails-html-sanitizer | source | sid | 1.0.4-1 | not yet assigned | Not reported | [893994] |
| Debian | ruby-rails-html-sanitizer | source | forky | 1.0.4-1 | not yet assigned | Not reported | [893994] |
| Debian | ruby-rails-html-sanitizer | source | trixie | 1.0.4-1 | not yet assigned | Not reported | [893994] |
| Debian | ruby-rails-html-sanitizer | source | bookworm | 1.0.4-1 | not yet assigned | Not reported | [893994] |
| Suse | rubygem-rails-html-sanitizer | rpm | openstack cloud 7 | 1.0.3-8.8.1 | Not reported | SUSE-SU-2019:2182-1 | Not reported |
| Suse | rubygem-rails-html-sanitizer | rpm | openstack cloud crowbar 8 | 1.0.3-8.8.1 | Not reported | SUSE-SU-2019:2182-1 | Not reported |
| Suse | rubygem-rails-html-sanitizer | rpm | openstack cloud crowbar 9 | 1.0.3-8.8.1 | Not reported | SUSE-SU-2019:2182-1 | Not reported |
| Suse | rubygem-rails-html-sanitizer | rpm | enterprise storage 4 | 1.0.3-8.8.1 | Not reported | SUSE-SU-2019:2182-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-rails-html-sanitizer]Fixed
Details (2)
1.4.4-1· all · bookwormFixed · Fixed:
1.0.4-1dsa · ruby-rails-html-sanitizer · debian · bookworm; dsa · ruby-rails-html-sanitizer · debian · 12
1.4.4-1· all · bookwormFixed · Fixed:
1.0.4-1dsa · ruby-rails-html-sanitizer · debian · bookworm; dsa · ruby-rails-html-sanitizer · debian · 12
[Debian 13 (Trixie)]
- [ruby-rails-html-sanitizer]Fixed
Details (2)
1.6.2-1· all · trixieFixed · Fixed:
1.0.4-1dsa · ruby-rails-html-sanitizer · debian · 13
1.6.2-1· all · trixieFixed · Fixed:
1.0.4-1dsa · ruby-rails-html-sanitizer · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2019_2182-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-3741]
- [https://osv.dev/vulnerability/SUSE-SU-2019:2182-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-3741]
- [https://security-tracker.debian.org/tracker/CVE-2018-3741]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-3741.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]