CVE-2018-8048Cross-site Scripting in Project Loofah

CWE-79Cross-site Scripting16 documents7 sources
Severity
6.1MEDIUMNVD
EPSS
0.7%
top 28.21%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 27
Latest updateApr 26

Description

In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML fragment.

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages8 packages

debiandebian/ruby-rails-html-sanitizer< ruby-rails-html-sanitizer 1.0.4-1 (bookworm)
debiandebian/ruby-loofah< ruby-loofah 2.2.1-1 (bookworm)
RubyGemsrails/rails-html-sanitizer< 1.0.4

Also affects: Debian Linux 9.0

🔴Vulnerability Details

6
GHSA
rails-html-sanitizer Cross-site Scripting vulnerability2018-04-26
OSV
rails-html-sanitizer Cross-site Scripting vulnerability2018-04-26
OSV
CVE-2018-3741: There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 12018-03-30
OSV
CVE-2018-8048: In the Loofah gem through 22018-03-27
OSV
Cross-site Scripting in loofah2018-03-21

📋Vendor Advisories

4
Red Hat
rubygem-rails-html-sanitizer: non-whitelisted attributes are present in sanitized output when input with specially-crafted HTML fragments leading to XSS vulnerability2018-03-21
Red Hat
rubygem-loofah: XSS vulnerability due to unescaped comments within attributes by libxml22018-03-15
Debian
CVE-2018-3741: ruby-rails-html-sanitizer - There is a possible XSS vulnerability in all rails-html-sanitizer gem versions b...2018
Debian
CVE-2018-8048: ruby-loofah - In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may oc...2018

💬Community

4
Bugzilla
CVE-2018-3741 rubygem-rails-html-sanitizer: non-whitelisted attributes are present in sanitized output when input with specially-crafted HTML fragments leading to XSS vulnerability2018-04-18
HackerOne
XSS vulnerability in sanitize-method when parsing link's href2018-03-22
Bugzilla
CVE-2018-8048 rubygem-loofah: XSS vulnerability due to unescaped comments within attributes by libxml22018-03-21
Bugzilla
CVE-2018-8048 rubygem-loofah: XSS vulnerability due to unescaped comments within attributes by libxml2 [fedora-all]2018-03-21