6.1

CVE-2018-3741: rails rails-html-sanitizer Cross-site Scripting

CVSS: 6.1v3.1MediumModified
AliasesSUSE-SU-2019:2182-1UBUNTU-CVE-2018-3741DEBIAN-CVE-2018-3741
Published 30-03-2018Last modified 05-08-2024

Vulnerability summary

CVE-2018-3741 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in rails rails-html-sanitizer. EPSS estimates a 1.25% chance of exploitation in the next 30 days, higher than 69% of scored vulnerabilities.

Overall risk
25/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
1.25%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 5

Timeline

  1. 30-03-2018
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last 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

EPSS trend

Probability

1.25%

Chance of exploitation in the next 30 days

Percentile

69%

Versus all other CVEs

30-day change

0.00 pp

From 1.25% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.25%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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
RubyGems1 product
  • rails-html-sanitizer< 1.0.4
Rubyonrails1 product
Ubuntu1 product
  • ruby-rails-html-sanitizerAll versions (No fix recorded)

6 vendors · 9 products

References

10 links