# CVE-2018-3741

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-03-30 · Modified: 2024-08-05
- Aliases: SUSE-SU-2019:2182-1, UBUNTU-CVE-2018-3741, DEBIAN-CVE-2018-3741, GHSA-px3r-jm9g-c8w8
- Record: https://cvemate.com/vulnerability/CVE-2018-3741 · JSON: https://cvemate.com/vulnerability/CVE-2018-3741/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 1.253%, percentile 70.442%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian ruby-rails-html-sanitizer (Debian): \< 1.0.4-1
- ubuntu ruby-rails-html-sanitizer (Ubuntu): All versions (No fix recorded)
- RubyGems rails-html-sanitizer (RubyGems): \< 1.0.4
- rails rails-html-sanitizer: ≤ 1.0.3
- suse rubygem-rails-html-sanitizer&distro=SUSE Enterprise Storage 4 (SUSE Linux Enterprise): \< 1.0.3-8.8.1
- suse rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud 7 (SUSE Linux Enterprise): \< 1.0.3-8.8.1
- suse rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 8 (SUSE Linux Enterprise): \< 1.0.3-8.8.1
- suse rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 9 (SUSE Linux Enterprise): \< 1.0.3-8.8.1
- rubyonrails html\_sanitizer: ≤ 1.0.3

## References

- <https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae>
- <https://www.suse.com/support/update/announcement/2019/suse-su-20192182-1/>
- <https://bugzilla.suse.com/1086598>
- <https://www.suse.com/security/cve/CVE-2018-3741>
- <https://ubuntu.com/security/CVE-2018-3741>
- <http://www.openwall.com/lists/oss-security/2018/03/22>
- <https://www.cve.org/CVERecord?id=CVE-2018-3741>
- <https://security-tracker.debian.org/tracker/CVE-2018-3741>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-3741>
- <https://github.com/rails/rails-html-sanitizer>

---

Data as of 2026-12-05T07:48:13.817Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
