logo

CVE-2018-3741 rails-html-sanitizer

Package

Manager: gem
Name: rails-html-sanitizer
Vulnerable Version: >=0 <1.0.4

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00396 pctl0.59641

Details

rails-html-sanitizer Cross-site Scripting vulnerability 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.

Metadata

Created: 2018-04-26T15:41:10Z
Modified: 2023-03-01T18:54:07Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/04/GHSA-px3r-jm9g-c8w8/GHSA-px3r-jm9g-c8w8.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-px3r-jm9g-c8w8
Finding: F425
Auto approve: 1