Skip to main content

UPDATE LOG

Mastodon 4.7.7 security upgrade (2026-12-03)

Scope and outcome​

  • Service: Mustard, production Mastodon with custom Nori-backed Korean search.
  • Status: Deployed and verified on Dec 3, 2026 (JST), based on operator-provided terminal output.
  • Previous deployment: Mastodon 4.7.6, Ruby 4.0.10.
  • New deployment: Mastodon 4.7.7, Ruby 4.0.10.
  • Scope: Security maintenance on the 4.7 series; major-version migration is outside this change.

Upstream 4.7.7 changelog records an LD-Signature verification bypass fix (GHSA-5j82-r5fw-73xp), fixes for suspended-user collections exposed through REST API, non-public posts sent to trend FASPs, and remote profile fields represented by a single attachment object. The upstream comparison contains nine commits and 18 changed files, with no database migration or search-index file changes.

Source integration and image build​

  • Initial local branch: upgrade-4.7.6, commit 5bdc0290c0, clean working tree.
  • All six Compose services were healthy before deployment; public health endpoint returned HTTP 200 and the filesystem reported 3.2T available.
  • Official tag ref v4.7.7: 9ba2d5bba7c5bc09846951e4d0423a74fb7eecb2.
  • Created upgrade-4.7.7 and merged the official tag without conflicts. Staged diff check passed; 18 files changed, 189 insertions and 18 deletions.
  • Ruby references in .ruby-version, Dockerfile and Gemfile.lock remained at 4.0.10. Six tracked Nori files remained; no staged Nori/search/Elasticsearch/database paths or Featured Tag model changes were reported.
  • Merge commit: 672c514c81. The local Git hook was bypassed for this invocation because of the previously observed missing Yarn executable. Full automated test-suite execution and remote source-branch push are not confirmed.

One image build completed:

mustardkim/mastodon-mustard:v4.7.7-ruby4.0.10-672c514c81
sha256:2c4e229d00fdab197766616febb2ef423b006a58c91c5e503266d35833c7ba8d

Ruby 4.0.10 runtime, FFmpeg/ffprobe 9.0.2, libvips 8.18.5 and Bootsnap precompilation were observed. The final recursive chown step took 2298.5 seconds. No second build was needed.

Deployment and resolved procedural errors​

  1. The first isolated image check failed with a NameError because Mastodon::Version.to_s needs Rails configuration. This was a verification-command error, not evidence of an image defect. No production configuration or containers were changed.
  2. Replaced that check with Mastodon::Version.to_a.join('.') after checking the upstream version module. The isolated image check confirmed base version 4.7.7, three required Nori source files and lib/json-ld/safe_rdf.rb.
  3. The previous image was confirmed present (ID sha256:d2bbd0e0d2d463ab26eb0b83ebe0677d4328882527a4320279fe585afbece505). Existing Web and Sidekiq were healthy. The initial Compose backup attempt failed with permission denied before configuration changes.
  4. Retried backup and file replacement with scoped sudo, retaining Docker Compose execution as the regular operator. No directory ownership or permission change was needed.

The successful backup was:

/opt/mastodon/docker-compose.override.yml.bak-pre-4.7.7-20261202T153525Z

The UTC timestamp corresponds to Dec 3, 00:35:25 JST. The effective Compose configuration comparison confirmed only the Web and Sidekiq image references changed; configuration validation passed. Deployment used:

docker compose up -d --no-deps --no-build --pull never web sidekiq

Both containers started on the new image. Streaming, PostgreSQL, Elasticsearch, Redis and host Nginx were outside deployment scope. No DB migration or search reindex was performed.

Post-deployment evidence​

CheckObserved result
Webhealthy
Sidekiqhealthy
Web and Sidekiq imagev4.7.7-ruby4.0.10-672c514c81
Origin health endpointOK
Public HTTPS health endpointHTTP 200
Rails Mastodon version4.7.7
Rails Ruby version4.0.10
Nori read routing enabledtrue
Admin Elasticsearch mismatched indexes[]

Technical deployment and scoped operational verification completed. These checks establish point-in-time health, version and search-configuration consistency, not a full federation, search, security or application regression audit. The previous image and dated override backup were retained during deployment; no restoration was exercised. No additional restart or reindex is indicated by the observed results.

Follow-up​

  • Preserve the prior image and dated override for rollback.
  • Remote source-branch push and public user-facing notice are not confirmed by this log.
  • Do not treat this update as a major-version migration or a new check of unrelated backup and maintenance workstreams.