chore(deps): bump rails-html-sanitizer to 1.7.1 and json to 2.20.0 - #131
Merged
Merged
Conversation
Resolves the open Dependabot alerts: - rails-html-sanitizer < 1.7.1: possible XSS with certain configurations (Gemfile.lock, examples/Gemfile.lock) - json >= 2.9.0, < 2.19.9: JSON generator heap buffer overflow when streaming to an IO (examples/Gemfile.lock) Also bumps rails-html-sanitizer in gemfiles/rails72.gemfile.lock, which carried the same advisory at 1.6.2 but is outside the paths Dependabot scans. That pulls loofah to 2.25.2 there, since rails-html-sanitizer 1.7.1 requires loofah ~> 2.25, >= 2.25.2. Claude-Session: https://claude.ai/code/session_01UW2w6koy14hxCEfHcYH8GJ
philippemnoel
requested review from
isaacvando,
mdashti,
rebasedming and
stuhood
as code owners
July 26, 2026 03:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves all three open Dependabot alerts.
Gemfile.lockexamples/Gemfile.lockexamples/Gemfile.lockgemfiles/rails72.gemfile.lockgemfiles/rails72.gemfile.lockAdvisories addressed:
>= 1.0.3, < 1.7.1— possible XSS vulnerability with certain configurations (medium).>= 2.9.0, < 2.19.9— JSON generator heap buffer overflow when streaming to an IO (low). The rootGemfile.lockwas already on 2.20.0, so only the examples lock needed this.Notes
gemfiles/rails72.gemfile.lockwas not in the alert list — Dependabot only scansGemfile.lockandexamples/Gemfile.lock— but it carried the same rails-html-sanitizer advisory at 1.6.2, so it is bumped here too. That pulls loofah to 2.25.2 in that lock, since rails-html-sanitizer 1.7.1 requiresloofah ~> 2.25, >= 2.25.2.No changelog entry: these lockfiles are dev/CI-only. The gemspec declares unpinned runtime ranges (
activerecord,activesupport,pg,railties), so gem consumers resolve their own transitive versions and see no behavior change. This matches how #128 / #129 were handled.Lockfiles were hand-edited rather than regenerated (no Ruby 4.0 toolchain available locally). All four sha256
CHECKSUMSentries were verified by downloading the gems and hashing them, and every dependency requirement across all three locks was checked against the locked versions. Relying on CI here to confirm the resolution installs and the suites pass on both Rails 7.2 and 8.1.https://claude.ai/code/session_01UW2w6koy14hxCEfHcYH8GJ