CVE-2018-3741

Source
https://cve.org/CVERecord?id=CVE-2018-3741
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-3741.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-3741
Aliases
Downstream
DEBIAN (1)
openSUSE (6)
RHSA (1)
SUSE (1)
UBUNTU (1)
Related
Published
2018-03-30T19:29:00Z
Modified
2026-10-20T10:50:27Z
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
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

Git / github.com/rails/rails-html-sanitizer

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails-html-sanitizer
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:rubyonrails:html_sanitizer:*:*:*:*:*:ruby:*:*",
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "1.0.3"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "f3ba1a839a35f2ba7f941c15e239a1cb379d56ae"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

v1.*
v1.0.0
v1.0.1
v1.0.2
v1.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-3741.json"