Medium severity6.1NVD Advisory· Published Mar 30, 2018· Updated Jun 17, 2026
CVE-2018-3741
CVE-2018-3741
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rails-html-sanitizerRubyGems | < 1.0.4 | 1.0.4 |
Affected products
8- ghsa-coords7 versionspkg:gem/rails-html-sanitizerpkg:rpm/opensuse/ruby3.2-rubygem-rails-html-sanitizer&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rubygem-rails-html-sanitizer&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rubygem-rails-html-sanitizer&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/rubygem-rails-html-sanitizer&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/rubygem-rails-html-sanitizer&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/rubygem-rails-html-sanitizer&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 1.0.4+ 6 more
- (no CPE)range: < 1.0.4
- (no CPE)range: < 1.5.0-2.1
- (no CPE)range: < 1.4.3-1.1
- (no CPE)range: < 1.0.3-8.8.1
- (no CPE)range: < 1.0.3-8.8.1
- (no CPE)range: < 1.0.3-8.8.1
- (no CPE)range: < 1.0.3-8.8.1
- Range: <= 1.0.3
Patches
Vulnerability mechanics
References
3- github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56aenvdIssue TrackingPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-px3r-jm9g-c8w8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-3741ghsaADVISORY
News mentions
0No linked articles in our index yet.