CVE-2020-26257 · GitHub_M
Denial of service attack via incorrect parameters to federation APIs
Matrix is an ecosystem for open federated Instant Messaging and VoIP. Synapse is a reference "homeserver" implementation of Matrix. A malicious or poorly-implemented homeserver can inject malformed events into a room by specifying a different room id in the path of a `/send_join`, `/send_leave`, `/invite` or `/exchange_third_party_invite` request. This can lead to a denial of service in which future events will not be correctly sent to other servers over federation. This affects any server which accepts federation requests from untrusted servers. The Matrix Synapse reference implementation before version 1.23.1 the implementation is vulnerable to this injection attack. Issue is fixed in version 1.23.1. As a workaround homeserver administrators could limit access to the federation API to trusted servers (for example via `federation_domain_whitelist`).
Published 2020-12-09, last changed 2026-06-17. Weakness: CWE-79, CWE-400.
How to fix
Upgrade to a fixed version: matrix-synapse 1.23.1 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in matrix-org/synapse by 3ce2f303f1, pull request #8776, 1cec3d1457. Functions changed by the fix: on_context_state_request, on_room_state_request, on_send_join_request, on_send_leave_request, on_exchange_third_party_invite_request, FederationStateV1Servlet, on_GET, FederationBackfillServlet, FederationMakeJoinServlet, FederationMakeLeaveServlet, on_PUT, FederationEventAuthServlet. Regression tests: tests/handlers/test_federation.py. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2020-12-09 | Published |
| 2020-12-09 | Package advisory GHSA-hxmp-pqch-c8mm |
| 2020-12-09 | Package advisory PYSEC-2020-236 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.39% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-hxmp-pqch-c8mm | matrix-synapse (PyPI) | 1.23.1 |
| PYSEC-2020-236 | matrix-synapse (PyPI) | 1.23.1 |
Also known as: GHSA-hxmp-pqch-c8mm, PYSEC-2020-236
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-45078 | 2026-05-28 | 5.5 | Synapse CPU starvation (Denial of Service) |
| CVE-2026-45076 | 2026-05-28 | 2.7 | Synapse pagination denial of service |
| CVE-2025-61672 | 2025-10-08 | 5.3 | Synapse: Invalid device keys degrade federation functionality |
| CVE-2025-30355 | 2025-03-27 | 7.5 | Synapse vulnerable to federation denial of service via malformed events |
| CVE-2024-53867 | 2024-12-03 | 4.3 | Synapse Matrix has a partial room state leak via Sliding Sync |
| CVE-2024-53863 | 2024-12-03 | 9.1 | Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders |
| CVE-2024-52815 | 2024-12-03 | 5.3 | Synapse allows a a malformed invite to break the invitee's `/sync` |
| CVE-2024-52805 | 2024-12-03 | 7.5 | Synapse allows unsupported content types to lead to memory exhaustion |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2020-26257, or call /api/v1/vulnerabilities/CVE-2020-26257. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.