CVE-2018-3741: rails rails-html-sanitizer
Vulnerability summary
CVE-2018-3741 is a medium (CVSS 6.1) vulnerability in rails rails-html-sanitizer. EPSS estimates a 1.25% chance of exploitation in the next 30 days, higher than 70.4% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 5Timeline
- 30-03-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.25%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse4 products
- rubygem-rails-html-sanitizer&distro=SUSE Enterprise Storage 4< 1.0.3-8.8.1
- rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud 7< 1.0.3-8.8.1
- rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 8< 1.0.3-8.8.1
- rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 9< 1.0.3-8.8.1
Debian1 product
- ruby-rails-html-sanitizer< 1.0.4-1
Rails1 product
- rails-html-sanitizer≤ 1.0.3
RubyGems1 product
- rails-html-sanitizer< 1.0.4
Rubyonrails1 product
- html_sanitizer≤ 1.0.3
Ubuntu1 product
- ruby-rails-html-sanitizerAll versions (No fix recorded)
6 vendors · 9 products
References
10 links- github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56aeX Refsource CONFIRMIssue TrackingPatchThird Party AdvisoryWEB