SCA: security update for rails-html-sanitizer (GHSA-cpgf-5mjf-73p7)

medium Tenable Self-Hosted Container Security Plugin ID 497274

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. From 1.0.3
through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern
whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line
start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes
its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The
default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression
matching for this pattern, while CRuby 3.1 and earlier and JRuby are affected. This issue is fixed in
version 1.7.2. (CVE-2026-128068)

Solution

Update the rails-html-sanitizer library and its related packages to version 1.7.2 or later.

See Also

https://github.com/advisories/GHSA-cpgf-5mjf-73p7

Plugin Details

Severity: Medium

ID: 497274

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 12/3/2026

Updated: 12/3/2026

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.3

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

CVSS Score Source: CVE-2026-128068

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 11/13/2026

Vulnerability Publication Date: 11/13/2026

Reference Information

CVE: CVE-2026-128068