Skip to content

Commit 4f37e3d

Browse files
committed
version bump to v1.7.1
1 parent b4673b9 commit 4f37e3d

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
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?`,

lib/rails/html/sanitizer/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Rails
44
module HTML
55
class Sanitizer
6-
VERSION = "1.7.0"
6+
VERSION = "1.7.1"
77
end
88
end
99
end

0 commit comments

Comments
 (0)