chore(deps-dev): bump rails-html-sanitizer from 1.7.1 to 1.7.2
Bumps rails-html-sanitizer from 1.7.1 to 1.7.2.
Release notes
Sourced from rails-html-sanitizer's releases.
v1.7.2 / 2026-11-02
Deciding whether an SVG
hreforxlink:hrefis a local reference no longer takes quadratic time.
PermitScrubbermatched the attribute value against a pattern that rescanned the value's whitespace run from every line start, so an all-whitespace value took seconds to scrub. Only Ruby 3.1 and earlier are affected, because Ruby 3.2 introduced linear-time regexp matching. ThroughPermitScrubber, applications are only affected if the allowed tags are overridden to include an SVG reference element such asuse; the default configuration is not affected.This change addresses GHSA-cpgf-5mjf-73p7.
PermitScrubbernow applies the html5lib attribute value rules by callingLoofah::HTML5::Scrub.scrub_attribute_valuerather than carrying its own copy. The minimum Loofah dependency is now~> 2.25, >= 2.25.3.Mike Dalessio
rails-html-sanitizer now requires Ruby >= 3.2, because Loofah 2.25.3 requires it.
The
1.6.xand1.5.xrelease branches no longer receive security updates. Every Rails release in security support accepts rails-html-sanitizer 1.7 and requires Ruby >= 3.2.Mike Dalessio
SafeListSanitizerno longer shares aPermitScrubberacross calls.Previously one sanitizer instance reused a single
PermitScrubber, assigning itstagsandattributeson every call. Action View memoizes one sanitizer per helper module, so two concurrentsanitizecalls with differenttags:orattributes:options could interleave and one call could be scrubbed with the other call's allowlist. Each call now builds its ownPermitScrubber.This change addresses GHSA-h7wh-q2qr-458c.
Mike Dalessio
Changelog
Sourced from rails-html-sanitizer's changelog.
v1.7.2 / 2026-11-02
Deciding whether an SVG
hreforxlink:hrefis a local reference no longer takes quadratic time.
PermitScrubbermatched the attribute value against a pattern that rescanned the value's whitespace run from every line start, so an all-whitespace value took seconds to scrub. Only Ruby 3.1 and earlier are affected, because Ruby 3.2 introduced linear-time regexp matching. ThroughPermitScrubber, applications are only affected if the allowed tags are overridden to include an SVG reference element such asuse; the default configuration is not affected.This change addresses GHSA-cpgf-5mjf-73p7.
PermitScrubbernow applies the html5lib attribute value rules by callingLoofah::HTML5::Scrub.scrub_attribute_valuerather than carrying its own copy. The minimum Loofah dependency is now~> 2.25, >= 2.25.3.Mike Dalessio
rails-html-sanitizer now requires Ruby >= 3.2, because Loofah 2.25.3 requires it.
The
1.6.xand1.5.xrelease branches no longer receive security updates. Every Rails release in security support accepts rails-html-sanitizer 1.7 and requires Ruby >= 3.2.Mike Dalessio
SafeListSanitizerno longer shares aPermitScrubberacross calls.Previously one sanitizer instance reused a single
PermitScrubber, assigning itstagsandattributeson every call. Action View memoizes one sanitizer per helper module, so two concurrentsanitizecalls with differenttags:orattributes:options could interleave and one call could be scrubbed with the other call's allowlist. Each call now builds its ownPermitScrubber.This change addresses GHSA-h7wh-q2qr-458c.
Mike Dalessio
Commits
bac36ceversion bump to v1.7.2235d7a4Merge pull request #243 from rails/card-934-release-v1-7-263ff4dcdoc: end support for the 1.6.x and 1.5.x branches15f764cBuild a PermitScrubber per SafeListSanitizer callc5252d7build: require Ruby >= 3.2f776f96Scrub SVG href attributes in linear timeefa57d8build(deps): bump crass from 1.0.7 to 1.0.8 (#240)1530fb9build(deps): bump ruby/setup-ruby (#239)9206a0bbuild(deps): bump the github-actions group across 1 directory with 2 updates ...c486875ci: run Ruby 2.7, 3.0 and 3.1 on ubuntu-24.04 (#237)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Bumps rails-html-sanitizer from 1.7.1 to 1.7.2 in the dev dependencies. This patch fixes a quadratic-time SVG href scrubbing issue (GHSA-cpgf-5mjf-73p7) and a concurrency bug where SafeListSanitizer could scrub with another call's allowlist (GHSA-h7wh-q2qr-458c).
- Requires Ruby >= 3.2, because
loofah2.25.3 now requires it; the 1.5.x and 1.6.x branches no longer receive security updates. - Also bumps
loofahto 2.25.3,nokogirito 1.19.7, andcrassto 1.0.8.