[BUMP] Update dependency rails to v7.0.8.1 [SECURITY] #160
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.
This PR contains the following updates:
7.0.4.3
->7.0.8.1
GitHub Vulnerability Alerts
CVE-2024-26144
Possible Sensitive Session Information Leak in Active Storage
There is a possible sensitive session information leak in Active Storage. By
default, Active Storage sends a
Set-Cookie
header along with the user'ssession cookie when serving blobs. It also sets
Cache-Control
to public.Certain proxies may cache the Set-Cookie, leading to an information leak.
This vulnerability has been assigned the CVE identifier CVE-2024-26144.
Versions Affected: >= 5.2.0, < 7.1.0
Not affected: < 5.2.0, > 7.1.0
Fixed Versions: 7.0.8.1, 6.1.7.7
Impact
A proxy which chooses to caches this request can cause users to share
sessions. This may include a user receiving an attacker's session or vice
versa.
This was patched in 7.1.0 but not previously identified as a security
vulnerability.
All users running an affected release should either upgrade or use one of the
workarounds immediately.
Releases
The fixed releases are available at the normal locations.
Workarounds
Upgrade to Rails 7.1.X, or configure caching proxies not to cache the
Set-Cookie headers.
Credits
Thanks to tyage for reporting this!
CVE-2024-26143
Possible XSS Vulnerability in Action Controller
There is a possible XSS vulnerability when using the translation helpers
(
translate
,t
, etc) in Action Controller. This vulnerability has beenassigned the CVE identifier CVE-2024-26143.
Versions Affected: >= 7.0.0.
Not affected: < 7.0.0
Fixed Versions: 7.1.3.1, 7.0.8.1
Impact
Applications using translation methods like
translate
, ort
on acontroller, with a key ending in "_html", a
:default
key which containsuntrusted user input, and the resulting string is used in a view, may be
susceptible to an XSS vulnerability.
For example, impacted code will look something like this:
To reiterate the pre-conditions, applications must:
t
froma view)
_html
render
call)All users running an affected release should either upgrade or use one of the
workarounds immediately.
Releases
The fixed releases are available at the normal locations.
Workarounds
There are no feasible workarounds for this issue.
Patches
To aid users who aren't able to upgrade immediately we have provided patches for
the two supported release series. They are in git-am format and consist of a
single changeset.
Credits
Thanks to ooooooo_q for the patch and fix!
Release Notes
rails/rails (rails)
v7.0.8.1
: 7.0.8.1Compare Source
Active Support
Active Model
Active Record
Action View
Action Pack
Fix possible XSS vulnerability with the
translate
method in controllersCVE-2024-26143
Active Job
Action Mailer
Action Cable
Active Storage
Disables the session in
ActiveStorage::Blobs::ProxyController
and
ActiveStorage::Representations::ProxyController
in order to allow caching by default in some CDNs as CloudFlare
Fixes #44136
Bruno Prieto
Action Mailbox
Action Text
Railties
v7.0.8
: 7.0.8Compare Source
Active Support
Fix
TimeWithZone
still using deprecated#to_s
whenENV
orconfig
todisable it are set.
Hartley McGuire
Fix CacheStore#write_multi when using a distributed Redis cache with a connection pool.
Fixes #48938.
Jonathan del Strother
Active Model
Active Record
Fix
change_column
not settingprecision: 6
ondatetime
columns whenusing 7.0+ Migrations and SQLite.
Hartley McGuire
Fix unscope is not working in specific case
Before:
After:
Fixes #48094.
Kazuya Hatanaka
Fix associations to a STI model including a
class_name
parameterSTI tables
Fix
change_table
setting datetime precision for 6.1 MigrationsHartley McGuire
Fix change_column setting datetime precision for 6.1 Migrations
Hartley McGuire
Action View
Fix
form_for
missing the hidden_method
input for models with anamespaced route.
Hartley McGuire
Fix
render collection: @​records, cache: true
insidejbuilder
templatesThe previous fix that shipped in
7.0.7
assumed template fragments are always strings,this isn't true with
jbuilder
.Jean Boussier
Action Pack
Fix
HostAuthorization
potentially displaying the value of theX_FORWARDED_HOST header when the HTTP_HOST header is being blocked.
Hartley McGuire, Daniel Schlosser
Active Job
Fix Active Job log message to correctly report a job failed to enqueue
when the adapter raises an
ActiveJob::EnqueueError
.Ben Sheldon
Action Mailer
Action Cable
Active Storage
Action Mailbox
Action Text
Railties
Omit
webdrivers
gem dependency fromGemfile
templateSean Doyle
v7.0.7.2
: 7.0.7.2Compare Source
No changes between this and 7.0.7.2. This release was just to fix file permissions in the previous release.
v7.0.7.1
: 7.0.7.1Compare Source
Active Support
Use a temporary file for storing unencrypted files while editing
[CVE-2023-38037]
Active Model
Active Record
Action View
Action Pack
Active Job
Action Mailer
Action Cable
Active Storage
Action Mailbox
Action Text
Railties
v7.0.7
: 7.0.7Compare Source
Active Support
Fix
Cache::NullStore
with local caching for repeated reads.fatkodima
Fix
to_s
with no arguments not respecting custom:default
formatsHartley McGuire
Fix
ActiveSupport::Inflector.humanize(nil)
raisingNoMethodError: undefined method `end_with?' for nil:NilClass
.James Robinson
Fix
Enumerable#sum
forEnumerator#lazy
.fatkodima, Matthew Draper, Jonathan Hefner
Improve error message when EventedFileUpdateChecker is used without a
compatible version of the Listen gem
Hartley McGuire
Active Model
Error.full_message now strips ":base" from the message.
zzak
Add a load hook for
ActiveModel::Model
(namedactive_model
) to match the load hook forActiveRecord::Base
and allow for overriding aspects of theActiveModel::Model
class.Active Record
Restores functionality to the missing method when using enums and fixes.
paulreece
Fix
StatementCache::Substitute
with serialized type.ywenc
Fix
:db_runtime
on notification payload when application have multiple databases.Eileen M. Uchitelle
Correctly dump check constraints for MySQL 8.0.16+.
Steve Hill
Fix
ActiveRecord::QueryMethods#in_order_of
to includenil
s, to match thebehavior of
Enumerable#in_order_of
.For example,
Post.in_order_of(:title, [nil, "foo"])
will now include postswith
nil
titles, the same asPost.all.to_a.in_order_of(:title, [nil, "foo"])
.fatkodima
Revert "Fix autosave associations with validations added on
:base
of the associated objects."This change intended to remove the :base attribute from the message,
but broke many assumptions which key these errors were stored.
zzak
Fix
#previously_new_record?
to return true for destroyed records.Before, if a record was created and then destroyed,
#previously_new_record?
would return true.Now, any UPDATE or DELETE to a record is considered a change, and will result in
#previously_new_record?
returning false.
Adrianna Chang
Revert breaking changes to
has_one
relationship deleting the old record before the new one is validated.zzak
Fix support for Active Record instances being uses in queries.
As of
7.0.5
, query arguments were deep duped to avoid mutations impactingthe query cache, but this had the adverse effect to clearing the primary key when
the query argument contained an
ActiveRecord::Base
instance.This broke the
noticed
gem.Jean Boussier
Action View
Fix
render collection: @​records, cache: true
to cache fragments as bare stringsPreviously it would incorrectly cache them as Action View buffers.
Jean Boussier
Don't double-encode nested
field_id
andfield_name
index valuesPass
index: @​options
as a default keyword argument tofield_id
andfield_name
view helper methods.Sean Doyle
Action Pack
Active Job
Action Mailer
Action Cable
Active Storage
Action Mailbox
Action Text
Railties
Update default scaffold templates to set 303 (See Other) as status code
on redirect for the update action for XHR requests other than GET or POST
to avoid issues (e.g browsers trying to follow the redirect using the
original request method resulting in double PATCH/PUT)
Guillermo Iguaran
v7.0.6
: 7.0.6Compare Source
Active Support
Fix
EncryptedConfiguration
returning incorrect values for someHash
methods
Hartley McGuire
Fix arguments being destructed
Enumerable#many?
with block.Andrew Novoselac
Fix humanize for strings ending with id.
fatkodima
Active Model
Active Record
Fix autosave associations with validations added on
:base
of the associated objects.fatkodima
Fix result with anonymous PostgreSQL columns of different type from json.
Oleksandr Avoiants
Preserve timestamp when setting an
ActiveSupport::TimeWithZone
value totimestamptz
attribute.fatkodima
Fix where on association with has_one/has_many polymorphic relations.
Before:
Later:
Lázaro Nixon
Fix decrementing counter caches on optimistically locked record deletion
fatkodima
Ensure binary-destined values have binary encoding during type cast.
Matthew Draper
Preserve existing column default functions when altering table in SQLite.
fatkodima
Remove table alias added when using
where.missing
orwhere.associated
.fatkodima
Fix
Enumerable#in_order_of
to only flatten first level to preserve nesting.Miha Rekar
Action View
Action Pack
Active Job
Fix error Active Job passed class with
permitted?
.Alex Baldwin
Action Mailer
Action Cable
Fix Action Cable Redis configuration with sentinels.
Dmitriy Ivliev
Active Storage
Fix retrieving rotation value from FFmpeg on version 5.0+.
In FFmpeg version 5.0+ the rotation value has been removed from tags.
Instead the value can be found in side_data_list. Along with
this update it's possible to have values of -90, -270 to denote the video
has been rotated.
Haroon Ahmed
Action Mailbox
Action Text
Railties
Avoid escaping paths when editing credentials.
Jonathan Hefner
v7.0.5.1
Compare Source
Active Support
Active Model
Active Record
Action View
Action Pack
Raise an exception if illegal characters are provide to redirect_to
[CVE-2023-28362]
Zack Deveau
Active Job
Action Mailer
Action Cable
Active Storage
Action Mailbox
Action Text
Railties
v7.0.5
Compare Source
Active Support
Fixes TimeWithZone ArgumentError.
Niklas Häusele
Active Model
Active Record
Type cast
#attribute_changed?
:from
and:to
options.Andrew Novoselac
Fix
index_exists?
when column is an array.Eileen M. Uchitelle
Handle
Date
objects for PostgreSQLtimestamptz
columns.Alex Ghiculescu
Fix collation for changing column to non-string.
Hartley McGuire
Map through subtype in
PostgreSQL::OID::Array
.Jonathan Hefner
Store correct environment in
internal_metadata
when run railsdb:prepare
.fatkodima
Make sure
ActiveRecord::Relation#sum
works with objects that implement#coerce
without deprecation.Alex Ghiculescu
Fix retrieving foreign keys referencing tables named like keywords in PostgreSQL and MySQL.
fatkodima
Support UUIDs in Disable Joins.
Samuel Cochran
Fix Active Record's explain for queries starting with comments.
fatkodima
Fix incorrectly preloading through association records when middle association has been loaded.
Joshua Young
Fix where.missing and where.associated for parent/child associations.
fatkodima
Fix Enumerable#in_order_of to preserve duplicates.
fatkodima
Fix autoincrement on primary key for mysql.
Eileen M. Uchitelle
Restore ability to redefine column in
create_table
for Rails 5.2 migrations.fatkodima
Fix schema cache dumping of virtual columns.
fatkodima
Fix Active Record grouped calculations on joined tables on column present in both tables.
fatkodima
Fix mutation detection for serialized attributes backed by binary columns.
Jean Boussier
Fix a bug where using groups and counts with long table names would return incorrect results.
Shota Toguchi, Yusaku Ono
Fix erroneous nil default precision on virtual datetime columns.
Prior to this change, virtual datetime columns did not have the same
default precision as regular datetime columns, resulting in the following
being erroneously equivalent:
This change fixes the default precision lookup, so virtual and regular
datetime column default precisions match.
Sam Bostock
Fix a case where the query cache can return wrong values. See #46044
Aaron Patterson
Action View
FormBuilder#id
finds id set byform_for
andform_with
.Matt Polito
Allow all available locales for template lookups.
Ben Dilley
Choices of
select
can optionally contain html attributes as the last elementof the child arrays when using grouped/nested collections
=> United StatesCanada
Action Pack
Do not return CSP headers for 304 Not Modified responses.
Tobias Kraze
Fix
EtagWithFlash
when there is noFlash
middleware available.fatkodima
Fix content-type header with
send_stream
.Elliot Crosby-McCullough
Address Selenium
:capabilities
deprecation warning.Ron Shinall
Fix cookie domain for domain: all on two letter single level TLD.
John Hawthorn
Don't double log the
controller
,action
, ornamespaced_controller
when usingActiveRecord::QueryLog
Previously if you set
config.active_record.query_log_tags
to an array that included:controller
,:namespaced_controller
, or:action
, that item would get logged twice.This bug has been fixed.
Alex Ghiculescu
Rescue
EOFError
exception fromrack
on a multipart request.Nikita Vasilevsky
Rescue
JSON::ParserError
in Cookies json deserializer to discards marshal dumps:Without this change, if
action_dispatch.cookies_serializer
is set to:json
andthe app tries to read a
:marshal
serialized cookie, it would error out which wouldn'tclear the cookie and force app users to manually clear it in their browser.
(See #45127 for original bug discussion)
Nathan Bardoux
Active Job
Make delayed job
display_name
failsafe.codez
Don't double log the
job
when usingActiveRecord::QueryLog
Previously if you set
config.active_record.query_log_tags
to an array that included:job
, the job name would get logged twice. This bug has been fixed.Alex Ghiculescu
Action Mailer
Action Cable
Restore Action Cable Redis pub/sub listener on connection failure.
Vladimir Dementyev
Active Storage
Action Mailbox
Action Text
Fix
ActionText::Attachable#as_json
.Alexandre Ruban
Railties
Add puma app server to Gemfile in order to start test/dummy.
Donapieppo
Rails console now disables
IRB
's autocompletion feature in production by default.Setting
IRB_USE_AUTOCOMPLETE=true
can override this default.Stan Lo
Send 303 See Other status code back for the destroy action on newly generated
scaffold controllers.
Tony Drake
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.