Pleroma Security Release: 2.12.0

Pleroma 2.12.0 is a security release. The most important fixes:

The changelog lists about 30 more security fixes. Thanks to Matty (nicecrew.digital), nicole and Phantasm for reports and patches.

Update immediately.

Before you update

Instances that reach internal services through Pleroma

Pleroma now refuses requests to non-public addresses: private networks, loopback, Tailscale (100.64.0.0/10), Docker networks and so on. The instance’s own web, media proxy and upload origins work without changes. If Pleroma has to reach another internal service, for example an object storage server or an MRF API on the LAN, allow its exact origin:

config :pleroma, Pleroma.HTTP.Guard, allow: ["http://10.0.0.5:9000"]

If you use an HTTP or SOCKS proxy, the proxy resolves the names, so configure destination filtering there.

Frontends installed with pleroma_ctl frontend install

2.12.0 sends quote posts in the Mastodon format. pleroma-fe before 2.11.5 (and develop builds from before 2026-11-02) cannot load timelines that contain them. The release bundles pleroma-fe 2.11.5. If you installed pleroma-fe through :frontends, install the current develop build again, or remove the installed frontend to use the bundled one.

Stricter HTTP signatures

Pleroma now refuses incoming signed requests that do not sign the date, are older than 2 hours, or do not sign the digest of the body. If deliveries from a server you federate with start to fail, you can only log these requests for now:

config :pleroma, :activitypub, signature_policy: :log

HEIC and AVIF

Previews and upload metadata for HEIC/HEIF/AVIF files are off by default, because older libheif versions are not safe for untrusted files. With libheif 1.23.2 or newer, turn them on:

config :pleroma, Pleroma.Helpers.MediaHelper, heif_decoding: true

From source only

Upgrade notes

From source only

  1. Get new dependencies and recompile Pleroma:

    MIX_ENV=prod mix deps.get
    MIX_ENV=prod mix compile
    

Everyone

  1. Run database migrations (inside Pleroma directory):
    • OTP: ./bin/pleroma_ctl migrate
    • From Source: mix ecto.migrate
  2. Restart Pleroma

This release has these new migrations:

20260824214955_delete_legacy_id_sequences.exs
20261027000000_upload_filter_exiftool_to_exif.exs
20261028000000_backfill_instances_from_users.exs
20261030120000_data_migration_search_window_tokens.exs
20261106185600_add_token_activity.exs

The search migration drops the old full-text index and builds a new one in the background after startup. Search is slow until this is done. On a large instance, you can build the new index before the update with pleroma_ctl database search_window_tokens enable (from source: mix pleroma.database search_window_tokens enable).

Notable changes

The full list is in the changelog.

— lain