File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## v1.7.1 / 2026-07-15
2+
3+ * SVG reference elements now restrict both ` href ` and ` xlink:href ` to local references.
4+
5+ Previously ` PermitScrubber ` restricted only ` xlink:href ` on elements in ` SVG_ALLOW_LOCAL_HREF ` ,
6+ so a plain ` href ` attribute on those elements could reference an external document. Applications
7+ are only affected if the allowed tags are overridden to include an SVG reference element such as
8+ ` use ` ; the default configuration is not affected.
9+
10+ This change addresses GHSA-cj75 -f6xr-r4g7 (CVE requested). The minimum Loofah dependency is now
11+ ` ~> 2.25, >= 2.25.2 ` .
12+
13+ * Mike Dalessio*
14+
15+
116## v1.7.0 / 2026-02-24
217
318* Add ` Rails::HTML::Sanitizer.allowed_uri? ` which delegates to ` Loofah::HTML5::Scrub.allowed_uri? ` ,
Original file line number Diff line number Diff line change 33module Rails
44 module HTML
55 class Sanitizer
6- VERSION = "1.7.0 "
6+ VERSION = "1.7.1 "
77 end
88 end
99end
You can’t perform that action at this time.
0 commit comments