SCA: security update for rails-html-sanitizer (GHSA-w8gc-x259-rc7x)

low Tenable Cloud Security Plugin ID 419813

Description

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

- rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a
possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with
Rails >= 7.1.0 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The XSS vulnerability with certain
configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is
enabled and the application developer has overridden the sanitizer's allowed tags with both "math" and
"style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.
(CVE-2024-53985)

See Also

https://github.com/advisories/GHSA-w8gc-x259-rc7x

Plugin Details

Severity: Low

ID: 419813

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.14

Vendor

Vendor Severity: Low

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS Score Source: CVE-2024-53985

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

CVSS v4

Risk Factor: Low

Base Score: 2.3

Threat Score: 0.6

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/2/2024

Vulnerability Publication Date: 12/2/2024

Reference Information

CVE: CVE-2024-53985

cwe: CWE-79