chore(deps-dev): bump activestorage from 8.1.3.1 to 8.1.4.1
Bumps activestorage from 8.1.3.1 to 8.1.4.1.
Release notes
Sourced from activestorage'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 activestorage's changelog.
Rails 8.1.4.1 (November 03, 2026)
Preserve committed proxy responses when a storage error interrupts a streamed download.
[GHSA-4v2w-w6g6-f8f8]
Jeremy Daer
Derive
ActiveStorage::Filename#baseand#extensionfrom the sanitized filename.This prevents null bytes and invalid byte sequences in stored filename metadata from raising when a blob is opened or represented. Existing blob records are handled without a data migration.
[GHSA-p2pm-g2h6-7j5j]
Jeremy Daer
Ship an ImageMagick security policy and apply it to every ImageMagick process MiniMagick spawns.
ImageMagick chooses a coder from the content of the file it is given, and some coders act on files named inside the image rather than on the image itself. Active Storage constrained none of them, so an uploaded file could reach any coder the host's policy allowed, through the ImageMagick analyzer at attach time, with no variant or
analyzecall in the application.Active Storage now ships a
policy.xmlinActiveStorage::ImageMagick::POLICY_DIRECTORYand prepends that directory toMAGICK_CONFIGURE_PATHthroughMiniMagick.cli_env. ImageMagick applies every policy file on its search path, so the shipped policy adds to the host's policy rather than replacing it. AMAGICK_CONFIGURE_PATHset in the environment or inMiniMagick.cli_env, including by an initializer or dotenv, is kept after the shipped directory.The shipped policy denies the coders that script ImageMagick (
MSL), read or delete files other than the image (TEXT,EPHEMERAL), fetch remote references (URL,HTTP,HTTPS,FTP), display to a screen (SHOW,WIN,PLT), or hand the file to Ghostscript (thePS,EPS,EPTandgsdelegate), or reach a file directly (FILE,MPC,XPS,PCL), and it refuses@filenameindirection. The policy applies to every ImageMagick command MiniMagick runs, not only Active Storage's.These applications must act:
- One whose variant processor is
:mini_magickhas to use mini_magick 5.1 or later, which applying the policy requires. With an older mini_magick,
... (truncated)
Commits
3f290b7Preparing for 8.1.4.1 release3c67a69Preserve committed Active Storage streams after errors60f22afSanitize Active Storage filename parts849a6c3Don't write upgraded cookies to a response that skips the session468aa9aShip an ImageMagick security policy for every MiniMagick processe19916cEnforce the content length on GCS direct uploads8d93f6aSign GCS direct uploads with V2 when cache_control is set72136ffActive Storage: tempfile extension must match the blob's content type3b1f262Restrict the formats ffmpeg and ffprobe may openc3466eaPreparing for 8.1.4 release- 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 8.1.3.1 to 8.1.4.1 in Gemfile.lock, a patch release with several security fixes affecting Active Support, Action View, and Active Storage.
- Active Storage now ships an ImageMagick security policy; with the
:mini_magickvariant processor, this requires mini_magick 5.1 or later. - Transitive dependencies like
nokogiri,loofah,globalid, andmarcelare updated as part of the bump.