v4.1.15
Warning
This release is an important security release fixing a major security issue.
Corresponding security releases are available for the 4.2.x branch, the 4.0.x branch and the 3.5.x branch.
Note
If you are using nightly builds, do not use this release but update to nightly.2024-02-17-security
or newer instead. If you are on the main
branch, update to the latest commit.
Changelog
Fixed
- Fix OmniAuth tests and edge cases in error handling (ClearlyClaire, ClearlyClaire)
Security
- Fix insufficient checking of remote posts (GHSA-jhrq-qvrm-qr36)
Upgrade notes
To get the code for v4.1.15, use git fetch && git checkout v4.1.15
.
Note
As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump
Dependencies
Warning
The minimum required Ruby version has been bumped to 3.0 in Mastodon v4.1.14.
External dependencies have not changed compared to v4.1.14, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
- Ruby: 3.0
- PostgreSQL: 9.5 or newer
- Elasticsearch (optional, for full-text search): 7.x
- Redis: 4 or newer
- Node: >= 14, < 18
- ImageMagick: 6.9.7-7 or newer
Tip
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
Update steps
The following instructions are for updating from 4.1.14.
If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations.
Non-Docker only:
- Install dependencies:
bundle install
andyarn install --frozen-lockfile
Both Docker and non-Docker:
- Restart all Mastodon processes