CVE-2026-73648
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rails-html-sanitizerRubyGems | >= 1.0.3, < 1.7.1 | 1.7.1 |
Affected products
17- osv-coords16 versionspkg:apk/chainguard/ruby3.2-rails-8.1pkg:apk/chainguard/ruby3.2-rails-7.2pkg:apk/wolfi/ruby4.0-rails-8.1pkg:apk/chainguard/ruby3.4-rails-8.0pkg:apk/chainguard/ruby3.3-rails-8.0pkg:apk/chainguard/ruby3.4-rails-8.1pkg:apk/chainguard/ruby4.0-rails-8.1pkg:apk/wolfi/ruby3.4-rails-8.1pkg:apk/chainguard/ruby4.0-rails-8.0pkg:apk/chainguard/gitlab-rails-ce-fips-19.3pkg:apk/chainguard/pghero-fipspkg:apk/chainguard/pgheropkg:apk/chainguard/ruby3.4-rails-7.2pkg:apk/chainguard/ruby3.2-rails-8.0pkg:apk/chainguard/gitlab-rails-ce-19.3pkg:apk/wolfi/ruby3.2-rails-8.1
< 8.1.3-r9+ 15 more
- (no CPE)range: < 8.1.3-r9
- (no CPE)range: < 7.2.3.1-r8
- (no CPE)range: < 8.1.3-r10
- (no CPE)range: < 8.0.5-r7
- (no CPE)range: < 8.0.5-r10
- (no CPE)range: < 8.1.3-r11
- (no CPE)range: < 8.1.3-r10
- (no CPE)range: < 8.1.3-r11
- (no CPE)range: < 8.0.5-r6
- (no CPE)range: < 19.3.1-r3
- (no CPE)range: < 3.8.0-r6
- (no CPE)range: < 3.8.0-r5
- (no CPE)range: < 7.2.3.1-r10
- (no CPE)range: < 8.0.5-r7
- (no CPE)range: < 19.3.1-r6
- (no CPE)range: < 8.1.3-r9
- Range: <1.7.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-cj75-f6xr-r4g7ghsaADVISORY
- github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586nvdWEB
- github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1nvdWEB
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7nvdWEB
- github.com/rails/rails-html-sanitizer/pull/223nvd
News mentions
0No linked articles in our index yet.