# Mastodon v4.6.12 updates Ruby and dependencies to address critical security issues

> **Key takeaway:** Mastodon v4.6.12 introduces a mandatory Ruby version update to mitigate multiple critical security vulnerabilities within its Docker container images.

**Published:** 2026-11-19T10:40:56+00:00 
**Source:** Mastodon Fediverse Platform 
**Category:** decentralized-p2p 
**Canonical URL:** https://fosswire.org/news/mastodon-v4612-updates-ruby-and-dependencies-to-address-crit.html 

## 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.