CVE-2018-3741

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2018-3741
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-3741.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-3741
Aliases
Related
Published
2018-03-30T19:29:00Z
Modified
2024-09-11T04:25:15.812076Z
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

Debian:11 / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/debian/ruby-rails-html-sanitizer?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/debian/ruby-rails-html-sanitizer?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/debian/ruby-rails-html-sanitizer?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

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
Fixed

Affected versions

v1.*

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