# Mastodon v4.5.22 released to address critical Ruby security vulnerabilities

> **Key takeaway:** This security-focused update primarily updates the Ruby runtime in Docker images to mitigate multiple critical vulnerabilities.

**Published:** 2026-11-19T10:45:00+00:00 
**Source:** Mastodon Fediverse Platform 
**Category:** decentralized-p2p 
**Canonical URL:** https://fosswire.org/news/mastodon-v4522-released-to-address-critical-ruby-security-vu.html 

## Summary
The Mastodon development team has released version 4.5.22, a maintenance update focused on addressing security concerns within the platform's dependency stack. The release is specifically designed to mitigate multiple critical security issues by updating the Ruby runtime used in official Docker container images.

Administrators using Docker are urged to update immediately to ensure they are running the patched Ruby version. For those running non-Docker installations, the update requires ensuring that Ruby 3.4.13, 3.3.14, or newer is utilized to maintain a secure environment.

## Security updates and dependency changes
- **Ruby Runtime:** The default Ruby version has been updated in Docker images; non-Docker users must manually ensure they use Ruby 3.4.13, 3.3.14, or newer.
- **Dependency Patching:** The release includes security updates for several key libraries, including puma, rails, sanitize, msgpack, and omniauth.
- **Storage Warning:** Administrators utilizing OpenStack Swift for object storage are specifically advised to upgrade to a newer Mastodon version due to known security issues in existing dependencies.
- **Build Compatibility:** The update notes a potential build failure for the charlock_holmes gem on systems using recent versions of gcc, suggesting a specific C++17 flag workaround.

## Why it matters
This release is critical for Fediverse instance administrators to prevent exploitation of vulnerabilities in the underlying Ruby environment. It highlights the ongoing security challenges in maintaining decentralized social media platforms that rely on a complex web of upstream dependencies.