chore(deps-dev): bump actionview from 8.1.3.1 to 8.1.4.1
Bumps actionview from 8.1.3.1 to 8.1.4.1.
Release notes
Sourced from actionview's releases.
8.1.4.1
Active Support
ActiveSupport::MessagePackno longer deserializes an unsafeActiveSupport::SafeBufferashtml_safe.A
SafeBufferthat was no longerhtml_safe?, for example after an in-placegsub!, was deserialized as anhtml_safeSafeBuffer. It is now serialized with an unsafe marker and deserialized as aString. Earlier versions of Rails cannot read an unsafe buffer serialized this way.[GHSA-2w9f-fxwj-w2qf]
Jean Boussier
ActiveSupport::Inflector#safe_constantizematches the constant name in aLoadErrormessage as a literal string instead of building aRegexpfrom it.The name's segments were interpolated unescaped into the pattern, so input that reaches
safe_constantize, such as the channel identifier in an Action Cable subscribe command, chose the source passed to the regexp compiler.[GHSA-8474-xrp6-wh69]
Jeremy Daer
Active Model
- No changes.
Active Record
- No changes.
Action View
Skip attribute names in tag helpers that are blank once converted to a string.
A Symbol such as
:" "is not blank, becauseSymbol#blank?isSymbol#empty?, so it reached the escaping step and produced an attribute with no name. The asset helpers symbolize their keys, so an ordinary String key reached the same place.[GHSA-68p9-83h6-5wpj]
Mike Dalessio
... (truncated)
Changelog
Sourced from actionview's changelog.
Rails 8.1.4.1 (November 03, 2026)
Skip attribute names in tag helpers that are blank once converted to a string.
A Symbol such as
:" "is not blank, becauseSymbol#blank?isSymbol#empty?, so it reached the escaping step and produced an attribute with no name. The asset helpers symbolize their keys, so an ordinary String key reached the same place.[GHSA-68p9-83h6-5wpj]
Mike Dalessio
Fix
strip_tagsto encode"and'in its output.
strip_tagsreturns anhtml_safestring, but was not encoding quotation marks. The method now encodes all five HTML-significant characters (&,<,>,",'), consistent with the existinghtml_safeconvention.Output used outside HTML, such as in a text template or JSON, now contains
"and&[#39](https://github.com/rails/rails/issues/39);where it contained"and'.CGI.unescapeHTMLdecodes them.[GHSA-rq8q-p985-fjq7]
Mike Dalessio
Escape the matched phrase before substituting it into
highlight's:highlighter.A match was copied into each
\1of the highlighter as it appeared in the sanitized text, which keeps"and'as they are, so a match containing a quote ended a quoted attribute value such as the documented'<a href="search?q=\1">\1</a>'and added attributes of its own. Each substituted group now goes throughERB::Util.html_escape_once, so quotes in a match render as"and&[#39](https://github.com/rails/rails/issues/39);. Only the numbered placeholders\0to\9are expanded, and a match never replaces the>that closes a tag.[GHSA-v6rj-xm57-3p59]
Jeremy Daer
Require rails-html-sanitizer 1.7.2 or later.
With the HTML5 sanitizer, Nokogiri before 1.19.5 left
<and>unescaped in attribute values.highlightandsimple_format, which edit the sanitized HTML as a string, could then turn markup inside an attribute value into live elements. rails-html-sanitizer 1.7.2 requires
... (truncated)
Commits
3f290b7Preparing for 8.1.4.1 release9190210Skip tag attribute names that are blank once converted to a string568b19cFixstrip_tagsto encode"and'in its output0693819Escape the phrase substituted into highlight's :highlighteradc3a32Require rails-html-sanitizer 1.7.2 or laterc3466eaPreparing for 8.1.4 release334dc3eMerge pull request #58854 from carlosdanielpohlod/strict-locals-ascii-only-bodye6288a8Update CHANGELOGs for 8-1-stable backports6785886Merge pull request #58688 from byroot/upgrade-rubocopbf26808Merge branch '8-1-sec' into 8-1-stable- 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
Updates actionview from 8.1.3.1 to 8.1.4.1, a security release covering Rails 8.1.4.1 vulnerabilities in Action View, Action Support, and HTML sanitization.
- Patches unsafe tag attribute names, unescaped quotes in
strip_tagsandhighlightoutput, and a regex-injection vector insafe_constantize. - Requires
rails-html-sanitizer1.7.2 andnokogiri1.19.7, and bumps related transitive dependencies inGemfile.lock.