CVE-2026-46349: Mastodon Linked-Data Signature Spoofing Vulnerability
Mastodon versions before 4.5.10, 4.4.17, and 4.3.23 contain a flaw in how they validate digitally signed messages (Linked-Data Signatures) from other servers. An attacker can manipulate the structure of a valid signed message without breaking the signature, causing Mastodon to process it in unintended ways. This could allow spoofing—making a message appear to come from someone it didn't actually come from—but the immediate impact is limited to message manipulation rather than data theft or system shutdown.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses (CWE)
- CWE-347
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-06-25
NVD description (verbatim)
Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.5.10, 4.4.17, and 4.3.23, Mastodon's normalization of incoming activities signed with Linked-Data Signatures does not sufficiently protect the activities from a certain class of spoofing, allowing attackers to re-arrange a valid signed JSON-LD activity from a third-party actor to have it processed differently. This vulnerability is fixed in 4.5.10, 4.4.17, and 4.3.23.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from insufficient normalization of ActivityPub activities that carry Linked-Data Signatures. Linked-Data Signatures cryptographically sign JSON-LD objects, but JSON-LD can represent the same data in multiple structurally different ways. Mastodon's validation does not account for the full range of these normalization ambiguities, allowing an attacker to rearrange key-value pairs, restructure nested objects, or alter array orderings in a signed activity without invalidating the signature. The cryptographic proof remains intact even though the semantic meaning to Mastodon's processing engine changes. This is a signature canonicalization bypass—the signature was computed over one canonical form, but the server accepts a different canonical form as equivalent.
Business impact
For a Mastodon instance operator, this vulnerability creates a spoofing vector that could undermine trust in federated identity and message authenticity. An attacker could craft manipulated activities that appear to originate from legitimate remote accounts, potentially enabling impersonation, unauthorized endorsements, or social engineering attacks within the Fediverse. However, the CVSS score of 5.3 reflects that integrity is the primary concern; confidentiality and availability are not directly compromised. Organizations running Mastodon should prioritize patching, particularly instances serving high-profile or sensitive communities where impersonation carries reputational or operational risk.
Affected systems
Mastodon versions 4.5.9 and earlier, 4.4.16 and earlier, and 4.3.22 and earlier are vulnerable. Version 4.3.x is EOL for most deployments, but any instance still running it is affected. The vulnerability affects self-hosted Mastodon instances and any platform that relies on Mastodon's federation logic. Hosted Mastodon services (such as those on mastodon.social) should apply patches promptly, but individual instances are responsible for their own upgrades.
Exploitability
Exploitation requires no special privileges or user interaction. An attacker can craft a malicious ActivityPub activity from an external server and send it to a vulnerable Mastodon instance; Mastodon will validate the signature incorrectly and process the manipulated message. The attack surface is the federation protocol itself—any public Mastodon instance that accepts activities from remote servers is exposed. The barrier to entry is moderate; an attacker needs understanding of JSON-LD, ActivityPub, and Linked-Data Signature mechanics, but no zero-day toolkit or advanced exploit code is required. The attack is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating no widespread active exploitation has been disclosed as of the advisory date.
Remediation
Upgrade to Mastodon 4.5.10, 4.4.17, or 4.3.23 depending on your current version branch. These releases patch the signature validation logic to properly normalize incoming activities and prevent the canonicalization bypass. After upgrading, no further configuration changes are needed. Instance administrators should plan upgrades during low-traffic windows if possible, as federation processing may be temporarily affected during the transition.
Patch guidance
1. Identify your current Mastodon version (visible in the admin UI under 'About'). 2. Determine the appropriate target version: if running 4.5.x, upgrade to 4.5.10 or later; if running 4.4.x, upgrade to 4.4.17 or later; if running 4.3.x, upgrade to 4.3.23 or later. 3. Back up your database and configuration files. 4. Follow the Mastodon upgrade documentation for your deployment method (Docker, bare metal, etc.), which typically involves pulling the latest code, running migrations, and restarting services. 5. Test federation by sending a message to a remote Mastodon instance and confirming it displays correctly. 6. Monitor instance logs for any signature validation errors in the days following the upgrade.
Detection guidance
Monitor ActivityPub activity logs for unusual patterns in incoming Create, Update, or Announce activities from external servers. Look for activities with restructured or reordered JSON properties relative to the origin server's reported structure. If your instance supports debug logging for ActivityPub signature validation, enable it temporarily and check for mismatches between the claimed canonicalization and the actual normalized form used in validation. Network-level detection is limited because exploitation occurs at the application layer, but anomalous federation behavior (e.g., sudden spoofed messages appearing to come from high-profile accounts) may be a trailing indicator.
Why prioritize this
Although the CVSS score is moderate (5.3), the vulnerability should be patched promptly because it directly threatens the integrity of federated identity and message authenticity—core trust properties of the Fediverse. Even without active exploitation, the attack is trivial to execute and could be weaponized by state or criminal actors seeking to inject disinformation or compromise account reputation at scale. The patch is straightforward to deploy, reducing friction in prioritization.
Risk score, explained
The CVSS 3.1 score of 5.3 (MEDIUM) reflects the following factors: Attack Vector is Network (AV:N), Attack Complexity is Low (AC:L), and no special privileges or user interaction are required (PR:N, UI:N), all of which push severity upward. However, the impact is limited to Integrity (I:L); Confidentiality and Availability are unaffected (C:N, A:N). The scope is unchanged (S:U), meaning the vulnerability does not cross privilege boundaries. The result is a MEDIUM severity rating that emphasizes the vulnerability is serious but not critical.
Frequently asked questions
Can an attacker steal private messages or credentials using this vulnerability?
No. The vulnerability affects the structure and ordering of signed activities, not the encryption or confidentiality of messages. It enables spoofing and message manipulation but does not grant access to private data or passwords. The CVSS vector confirms that Confidentiality is not impacted.
If I upgrade Mastodon, will my instance stop federating with older servers?
No. Upgrading to a patched version ensures your instance correctly validates signatures from all servers, including older ones. The patch improves validation without breaking backward compatibility with remote servers that are following the ActivityPub and Linked-Data Signature specifications correctly.
Does this vulnerability affect Mastodon's database or stored posts?
Not directly. The vulnerability affects how incoming activities are validated and processed at the protocol level. Stored posts in your database are not retroactively compromised by the presence of this vulnerability. However, any spoofed activities that were processed by a vulnerable instance before patching remain in your instance's history and should be reviewed manually if you suspect active exploitation.
What should I do if my Mastodon instance is still running version 4.3.x?
Upgrade as soon as feasible. Version 4.3.x reached end-of-life, and remaining on it exposes your instance not only to this vulnerability but also to other security issues that have been fixed in 4.4.x and 4.5.x. Follow the Mastodon project's migration guide for moving from 4.3 to a current branch, as major version upgrades may require additional steps.
This analysis is based on the official CVE description and CVSS 3.1 scoring. Patch version numbers and affected version ranges reflect the advisories issued by the Mastodon project. No exploit code or detailed attack steps are provided. Organizations should verify patch applicability and compatibility within their specific deployment environment before rolling out updates. SEC.co recommends consulting the official Mastodon documentation and security advisories for the most current guidance. Source: NVD (public-domain), retrieved 2026-08-02. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-45614MEDIUMOP-TEE ECDH Private Key Recovery via Curve Validation Bypass
- CVE-2026-48523MEDIUMPyJWT Algorithm Bypass in JWK Verification (2.9.0–2.12.1)
- CVE-2026-50634MEDIUMApache CXF JwsJsonContainerRequestFilter Authentication Bypass
- CVE-2026-9793MEDIUMKeycloak JWE Signature Bypass in OIDC Request Objects
- CVE-2026-10795HIGHUpdraftPlus Authentication Bypass Leading to RCE
- CVE-2026-41694LOWSpring Security SAML Decryption Oracle Vulnerability
- CVE-2026-42462HIGHFedify JSON-LD Signature Bypass Vulnerability – Patch Now
- CVE-2026-47201HIGHauthentik SAML XML Signature Wrapping Authentication Bypass