chore(deps-dev): bump actionpack from 8.1.3.1 to 8.1.4.1
Bumps actionpack from 8.1.3.1 to 8.1.4.1.
Release notes
Sourced from actionpack'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 actionpack's changelog.
Rails 8.1.4.1 (November 03, 2026)
Apply
config.action_dispatch.cookies_same_site_protectionto every session store.
ActionDispatch::Session::CacheStore,MemCacheStoreand third-party stores built onAbstractStoreor the session mixins sent session cookies with noSameSiteattribute. OnlyCookieStoreapplied the configured default.[GHSA-gmj8-hvj3-49mw]
Jean Boussier
Prevent
ActionController::Livestreams from blocking when a full buffer is closed or aborted.[GHSA-rwvh-fw6r-pwvp]
Jeremy Daer
Set and extend the
Varyheader for rendered responses according to the request headers used in format negotiation.
Vary: Acceptwas only added when the request carried a usableAcceptheader. A response to a request without one, negotiated to HTML or JavaScript, could be stored by a shared cache and served to later clients that requested a different representation.Responses now vary on
AcceptandX-Requested-Withwhenever the format is not given by the URL. XHR requests withoutAcceptalso vary onContent-Type, which Rails uses as a legacy format fallback. Whenconfig.action_dispatch.ignore_accept_headeris enabled, responses vary only onX-Requested-With.These fields are appended to an existing
Varyvalue without duplicating fields case-insensitively.Vary: *remains unchanged.[GHSA-r9jg-fmfx-2gv6]
Jeremy Daer
Skip writing a
CacheStoresession that another request deleted while this one ran.A request that loaded a session from
ActionDispatch::Session::CacheStorewrote it back when it finished, even after a concurrentreset_sessionor a server-side delete had removed it, so the old session ID worked again.[GHSA-2586-8ghr-69fj]
... (truncated)
Commits
3f290b7Preparing for 8.1.4.1 release2d9f502Applycookies_same_site_protectionto every session storeccbfc09Avoid blocking Live buffer termination7a955caVary rendered responses by negotiation headersd479192Skip writing a CacheStore session deleted mid-request849a6c3Don't write upgraded cookies to a response that skips the session2a01a5aDetect conflicts in Forwarded and X-Forwarded-For in ActionDispatch::RemoteIp8ba746eReturn self fromParameters#each_keywith a blockc3466eaPreparing for 8.1.4 releasee6288a8Update CHANGELOGs for 8-1-stable backports- 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 actionpack from 8.1.3.1 to 8.1.4.1 in Gemfile.lock, pulling in the Rails 8.1.4.1 security release and related transitive updates (nokogiri, rack, loofah, and others) as part of the resolution.
Security fixes included
cookies_same_site_protectionnow applies to every session store, not justCookieStore.- Rendered responses vary on negotiation headers (
Accept,X-Requested-With) to prevent shared caches from serving the wrong representation. ActionController::Livestreams no longer block when a full buffer is closed or aborted.safe_constantizematches constant names as literal strings instead of building a regexp, closing a DoS vector.ActiveSupport::MessagePackno longer deserializes an unsafeSafeBufferashtml_safe.CacheStoresessions that were deleted mid-request are no longer written back.