Cross-site Scripting (XSS) Affecting ruby-rails-html-sanitizer package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.4% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-RUBYRAILSHTMLSANITIZER-18767123
  • published14 Aug 2026
  • disclosed13 Aug 2026

Introduced: 13 Aug 2026

NewCVE-2026-73648  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest ruby-rails-html-sanitizer.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-rails-html-sanitizer package and not the ruby-rails-html-sanitizer package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.

CVSS Base Scores

version 3.1