Pleroma Security Release: 2.12.0
Pleroma 2.12.0 is a security release. The most important fixes:
- Server-side request forgery: Pleroma now refuses outgoing requests and redirects to private, loopback and other non-public addresses. Before, a remote post or link could make Pleroma fetch internal services, for example through the media proxy or link previews.
- Stored XSS: content warnings on embedded posts and static-fe pages were not escaped.
- Admin API: moderators could deactivate, delete or change the credentials of admin accounts.
- Accounts with two-factor authentication could still log in to the API with HTTP Basic auth and only the password.
- Streaming connections stayed open after their token was revoked or the account was deactivated.
- Pleroma no longer passes remote media to libvips and ffmpeg based on the Content-Type header. Only JPEG, PNG, GIF and WebP go to libvips, and untrusted libvips loaders are blocked.
- Incoming HTTP signatures must sign the date and the body digest, so captured requests can no longer be replayed.
- Remote actors with an inbox, collection or key on another host are rejected, and fetched objects must have the id they were fetched from.
- Passwords, OAuth tokens and client secrets no longer show up in the logs.
- Frontend installation could write outside the frontends directory, and emoji pack ZIP files had no size limit.
- Atom and RSS feeds did not escape every value.
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
- If you use the media preview proxy, set
VIPS_BLOCK_UNTRUSTED=1in the environment of the Pleroma service (for example in the systemd unit). OTP releases and the Docker image set it. - If you changed
config/prod.exs, keep the import ofprod.secret.exsinside the newif !Process.get(:public_default_config_read)block. Otherwise the admin config API shows no defaults, and Pleroma logs a warning.
Upgrade notes
From source only
Get new dependencies and recompile Pleroma:
MIX_ENV=prod mix deps.get MIX_ENV=prod mix compile
Everyone
- Run database migrations (inside Pleroma directory):
- OTP:
./bin/pleroma_ctl migrate - From Source:
mix ecto.migrate
- OTP:
- 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
- Search is much faster on large databases and gives exact results. Account search only finds accounts that match every word.
- Statuses include the Mastodon
quoteentity, so Mastodon 4.4+ clients show quote posts. - The media preview proxy can make previews in more sizes (
image_sizes), optionally as AVIF. - Pleroma backs off from servers that answer 429 or 503.
- exiftool is no longer needed: the built-in
Exif.StripLocationandExif.ReadDescriptionfilters replace the Exiftool filters. A migration renames the filters in the database configuration; the old names in config files still work, but are deprecated. The new filters also remove GPS data from WebP, HEIC and AVIF files and from XMP. - Deliveries go to shared inboxes when possible, also for followers-only posts and DMs.
The full list is in the changelog.