11---
22gem : rails-html-sanitizer
33framework : rails
4+ cve : 2026-73648
45ghsa : cj75-f6xr-r4g7
56url : https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7
67title : Possible XSS vulnerability with certain configurations of
@@ -14,19 +15,42 @@ description: |
1415 SVG reference element such as <use>.
1516 See related GHSA-9wjq-cp2p-hrgf in Loofah, whose SVG local-reference
1617 logic rails-html-sanitizer mirrors.
18+
19+ ## Impact
20+
21+ `Rails::HTML::PermitScrubber` restricts SVG reference elements in the
22+ `SVG_ALLOW_LOCAL_HREF` collection to local, same-document references,
23+ but that restriction covered only the `xlink:href` attribute. Browsers
24+ also accept a plain `href` attribute per the SVG 2 spec, and it was
25+ not restricted, so those elements could reference arbitrary external
26+ documents. SVG `<use>` can load and render external SVG content by
27+ reference, and if the referenced document is same-origin and contains
28+ scripts, it could execute in the context of the sanitized document.
29+ `<feImage>` can load external images, which can be used for tracking.
30+
31+ Applications are impacted only when the allowed tags are overridden
32+ to include one of these SVG reference elements, for example `<use>`
33+ or `<feImage>`. The default allowed tags do not include these SVG
34+ elements, so applications using the default configuration are not affected.
35+
36+ ## Credit
37+
38+ Found by maintainer Mike Dalessio during a security audit.
1739cvss_v4 : 5.1
1840unaffected_versions :
1941 - " < 1.0.3"
2042patched_versions :
2143 - " >= 1.7.1"
2244related :
2345 url :
46+ - https://nvd.nist.gov/vuln/detail/CVE-2026-73648
2447 - https://rubygems.org/gems/rails-html-sanitizer/versions/1.7.1
48+ - https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1
2549 - https://github.com/rails/rails-html-sanitizer/blob/main/CHANGELOG.md#v171--2026-07-15
2650 - https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586
2751 - https://discuss.rubyonrails.org/t/ghsa-cj75-f6xr-r4g7-possible-xss-vulnerability-with-certain-configurations-of-rails-html-sanitizer/91359#post_1
2852 - https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
2953 - https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7
54+ - https://github.com/advisories/GHSA-cj75-f6xr-r4g7
3055notes : |
31- - cvss_v4 from GHSA
32- - No CVE.
56+ - cvss_v4 in GHSA and nvd.nist.gov URLs.
0 commit comments