Mastodon v4.7.6 releases critical security updates for Ruby and core dependencies
Mastodon v4.7.6 updates the default Ruby version and several core dependencies to address multiple critical security vulnerabilities.
Summary
The Mastodon development team has released version 4.7.6, a maintenance update focused heavily on security hardening. The primary driver for this release is the update of the Ruby language within Docker container images to mitigate multiple critical security issues.
Administrators using the official Docker images are urged to update immediately. For those running manual 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 against the addressed vulnerabilities.
Security updates and dependency changes
- Core Language Update: The default Ruby version has been updated in Docker images, requiring users to move to Ruby 4.0.10, 3.4.13, 3.3.14, or more recent versions.
- Dependency Hardening: Several critical libraries and frameworks were updated for security, including Ruby, Puma, Rails, Sanitize, Msgpack, and Omniauth.
- Protocol and UI Fixes: The release addresses a missing featuredCollections definition in the JSON-LD context and corrects translation string usage on the email unsubscription page.
- Administrative Improvements: A bug causing a missing dropdown label in the admin audit log has been resolved.
Why it matters
This update is vital for Fediverse instance administrators to prevent potential exploitation of critical vulnerabilities in the underlying Ruby environment. Because Mastodon relies on a complex stack of dependencies like Puma and Rails, these synchronized security updates are essential for maintaining the stability and integrity of decentralized social networking nodes.
What to do
- If you use official Mastodon Docker images, update to v4.7.6 and restart all Mastodon processes immediately.
- If you run a manual installation, update to Ruby 4.0.10, 3.4.13, 3.3.14, or newer, then run bundle install and yarn install --immutable before restarting.
- Before upgrading, back up your database with a command like: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump
Original reference: github.com →