KeygraphLabs · CVE MCP

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.

CVSS
6.5
medium, from NVD
EPSS
2.39%
percentile 84.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-09Published
2020-12-09Package advisory GHSA-hxmp-pqch-c8mm
2020-12-09Package advisory PYSEC-2020-236
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.39%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-hxmp-pqch-c8mmmatrix-synapse (PyPI)1.23.1
PYSEC-2020-236matrix-synapse (PyPI)1.23.1

Also known as: GHSA-hxmp-pqch-c8mm, PYSEC-2020-236

Related

CVEPublishedCVSSSummary
CVE-2026-450782026-05-285.5Synapse CPU starvation (Denial of Service)
CVE-2026-450762026-05-282.7Synapse pagination denial of service
CVE-2025-616722025-10-085.3Synapse: Invalid device keys degrade federation functionality
CVE-2025-303552025-03-277.5Synapse vulnerable to federation denial of service via malformed events
CVE-2024-538672024-12-034.3Synapse Matrix has a partial room state leak via Sliding Sync
CVE-2024-538632024-12-039.1Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders
CVE-2024-528152024-12-035.3Synapse allows a a malformed invite to break the invitee's `/sync`
CVE-2024-528052024-12-037.5Synapse 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.

NVD · CVE.org