UBUNTU-CVE-2018-3741

Source
https://ubuntu.com/security/CVE-2018-3741
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-3741.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2018-3741
Related
Published
2018-03-30T19:29:00Z
Modified
2024-10-15T14:06:40Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.2-1
1.0.3-1
1.0.3-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:18.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.4-1

Affected versions

1.*

1.0.3-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.0.4-1",
            "binary_name": "ruby-rails-html-sanitizer"
        }
    ]
}

Ubuntu:20.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.4-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.0.4-1",
            "binary_name": "ruby-rails-html-sanitizer"
        }
    ]
}