SCA: security update for rails-html-sanitizer (GHSA-px3r-jm9g-c8w8)

medium Tenable Self-Hosted Container Security Plugin ID 422288

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2018-3741)

See Also

https://github.com/advisories/GHSA-px3r-jm9g-c8w8

Plugin Details

Severity: Medium

ID: 422288

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 3/28/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 8.69

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2018-3741

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 4/26/2018

Vulnerability Publication Date: 3/30/2018

Reference Information

CVE: CVE-2018-3741

cwe: CWE-79