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 vulnerability

Published Mar 30, 2018 CVSS 3.1 · 6.1 Medium EPSS 1.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2018-0191 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.
Github GHSA Github GHSA GHSA-px3r-jm9g-c8w8 rails-html-sanitizer Cross-site Scripting vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Aug 5, 2024, 4:50 AM
Reserved
Dec 28, 2017, 12:00 AM
Status
Modified
Published
Mar 30, 2018, 7:29 PM
Modified
Jun 17, 2026, 1:57 AM
Severity
Moderate
Public date
Mar 21, 2018, 12:00 AM