Mastodon v4.6.12 updates Ruby and dependencies to address critical security issues
Mastodon v4.6.12 introduces a mandatory Ruby version update to mitigate multiple critical security vulnerabilities within its Docker container images.
Summary
The Mastodon development team has released version 4.6.12, a maintenance update focused heavily on security hardening. The primary driver for this release is the update of the Ruby runtime within official Docker container images to resolve several critical security vulnerabilities.
Administrators using Docker are urged to update immediately. For those running non-Docker installations, the release mandates the use of Ruby 4.0.10, 3.4.13, 3.3.14, or newer to ensure the environment remains secure. Beyond the Ruby update, the release also patches specific functional bugs related to JSON-LD context and email unsubscription translations.
Security updates and dependency changes
- Security Patching: The release updates several core dependencies to address vulnerabilities, specifically targeting Ruby, Puma, Rails, Sanitize, Msgpack, and OmniAuth.
- Ruby Runtime Update: The default Ruby version has been updated in Docker images; non-Docker users must ensure they are on Ruby 3.3+ (specifically 4.0.10, 3.4.13, or 3.3.14+ for security).
- JSON-LD Fix: Resolved a bug where the featuredCollections definition was missing from the JSON-LD context (#41728).
- Localization Fix: Corrected the improper use of translation strings on the email notification unsubscription page (#41555).
- Build Compatibility: Noted a potential build failure for the charlock_holmes gem on systems using recent GCC versions, requiring specific CXX flags for successful installation.
Why it matters
This update is critical for Fediverse instance administrators, particularly those relying on Docker for deployment, as it addresses high-priority security risks in the underlying runtime. Failure to update the Ruby version could leave Mastodon instances exposed to known exploits in the web server and application framework stack.
What to do
- If you use Mastodon's Docker container images, update to v4.6.12 immediately to fix critical Ruby security issues.
- If you run a non-Docker Mastodon installation, update your Ruby to version 4.0.10, 3.4.13, 3.3.14, or newer.
- Before upgrading, back up your database; for docker-compose users, run: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump
- If the charlock_holmes gem fails to build on non-Docker systems with recent GCC, use: BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install
Original reference: github.com →