cve.bz

CVE-2026-73648 rails rails-html-sanitizer: Cross-site Scripting

5.1 mediumEPSS 0.5%Fix available

Medium (5.1) in rails rails-html-sanitizer. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in rails-html-sanitizer 1.7.1.

On this page
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.

Severity

CVSS 4.0

5.1 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-73648 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-73648?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-73648?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-73648 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails-html-sanitizer>= 1.0.3, < 1.7.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cj75-f6xr-r4g7RubyGemsrails-html-sanitizer>=1.0.3 <1.7.11.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ruby-rails-html-sanitizerno fix listedDEBIAN-CVE-2026-73648
Debian14ruby-rails-html-sanitizer1.7.1-1DEBIAN-CVE-2026-73648
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 moreruby-rails-html-sanitizerno fix listedUBUNTU-CVE-2026-73648
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5, Linux Enterprise High Availability Extension 15 SP6 and 1 morerubygem-rails-html-sanitizer1.0.4-150000.4.9.1SUSE-SU-2026:4445-1
SUSELinux Enterprise High Availability Extension 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1SUSE-SU-2026:24195-1
SUSELinux Enterprise High Availability Extension 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1SUSE-SU-2026:24712-1
SUSELinux Enterprise High Availability Extension 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1SUSE-SU-2026:24712-1
SUSELinux Enterprise Server 16.1, Linux Enterprise Server for SAP applications 16.1python-Pillow11.3.0-160100.3.1SUSE-SU-2026:24712-1
SUSELinux Enterprise Server for SAP applications 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1SUSE-SU-2026:24250-1
SUSELinux Enterprise Server for SAP applications 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1SUSE-SU-2026:24722-1
SUSELinux Enterprise Server for SAP applications 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1SUSE-SU-2026:24722-1
openSUSELeap 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1openSUSE-SU-2026:22068-1
openSUSELeap 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1openSUSE-SU-2026:22305-1
openSUSELeap 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1openSUSE-SU-2026:22305-1
openSUSETumbleweedhawk22.7.2+git.1792148770.648dcddb-1.1openSUSE-SU-2026:12153-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

rails-html-sanitizer sanitizes HTML fragments in Rails applications. This issue is a cross-site scripting vulnerability affecting versions 1.0.3 through 1.7.0. Exploitation requires that the application has overridden the sanitizer's default allowed tags to include SVG reference elements such as use or feImage. Applications that use the default allowed tags are not affected. The issue is fixed in version 1.7.1. Red Hat rates this Moderate.

Red Hat's mitigation

If the sanitizer's allowed tags have been overridden, remove SVG reference elements such as use and feImage from that list. Applications using the default allowed tags are not affected. Upgrade to rails-html-sanitizer 1.7.1 or later where a fix is available.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Fix deferred
Red Hat Satellite 6rubygem-rails-html-sanitizerFix deferred
Red Hat Satellite 6satellite:el8/rubygem-rails-html-sanitizerFix deferred
Red Hat Satellite 6tfm-rubygem-graphqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-73648.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON