Vulnerabilities in pkg:pypi/matrix-synapse
PACKAGECVE-2026-45076 is a MODERATE denial of service vulnerability (CWE-20: Improper Input Validation) affecting Matrix synapse libraries in the PyPI ecosystem. The issue involves synapse pagination denial of service. Remediation is available by upgrading affected packages to version 1.152.1.
pkg:pypi/matrix-synapse
Vulnerability advisories affecting package pkg:pypi/matrix-synapse. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6qf2-7x63-mm6v | CVE-2026-45076 | MODERATE | Synapse pagination Denial of Service |
| GHSA-8q93-326v-3m7g | CVE-2026-45078 | HIGH | Synapse CPU starvation (Denial of Service) |
| GHSA-gjgr-7834-rhxr | CVE-2024-37303 | MODERATE | Synapse's unauthenticated writes to the media repository allow planting of problematic content |
| GHSA-4mhg-xv73-xq2x | CVE-2024-37302 | HIGH | Synapse denial of service through media disk space consumption |
| GHSA-v56r-hwv5-mxg6 | CVE-2025-30355 | HIGH | Synapse vulnerable to federation denial of service via malformed events |
| GHSA-fh66-fcv5-jjfr | CVE-2025-61672 | MODERATE | Synapse's invalid device keys degrade federation functionality |
| GHSA-mp92-3jfm-3575 | CVE-2023-43796 | MODERATE | Synapse vulnerable to leak of remote user device information |
| GHSA-f3wc-3vxv-xmvr | CVE-2023-32323 | MODERATE | Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites |
| GHSA-56w4-5538-8v8h | CVE-2024-53867 | MODERATE | Synapse Matrix has a partial room state leak via Sliding Sync |
| GHSA-vp6v-whfm-rv3g | CVE-2024-53863 | HIGH | Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders |
| GHSA-f3r3-h2mq-hx2h | CVE-2024-52815 | HIGH | Synapse allows a a malformed invite to break the invitee's `/sync` |
| GHSA-rfq8-j7rh-8hf2 | CVE-2024-52805 | HIGH | Synapse allows unsupported content types to lead to memory exhaustion |
| GHSA-x345-32rc-8h85 | CVE-2021-29471 | MODERATE | Denial of service attack via push rule patterns in matrix-synapse |
| GHSA-4f74-84v3-j9q5 | CVE-2023-41335 | LOW | matrix-synapse vulnerable to temporary storage of plaintext passwords during password changes |
| GHSA-jrh7-mhhx-6h88 | CVE-2021-21393 | MODERATE | Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints |
| GHSA-c5f8-35qr-q4fm | CVE-2021-21333 | MODERATE | HTML injection in email and account expiry notifications |
| GHSA-98px-6486-j7qc | CVE-2023-32683 | MODERATE | Synapse has URL deny list bypass via oEmbed and image URLs when generating previews |
| GHSA-gwf7-vfjf-wf6x | CVE-2019-11842 | HIGH | matrix-sydent and matrix-synapse Use Cryptographically Weak PRNG |
| GHSA-4mp3-385r-v63f | CVE-2020-26890 | HIGH | Denial of service attack due to invalid JSON |
| GHSA-246w-56m2-5899 | CVE-2021-21332 | MODERATE | Cross-site scripting (XSS) vulnerability in the password reset endpoint |
| GHSA-22p3-qrh9-cx32 | CVE-2022-31052 | HIGH | URL previews of unusual or maliciously-crafted pages can crash Synapse media repositories or Synapse monoliths |
| GHSA-5wrh-4jwv-5w78 | CVE-2021-21392 | HIGH | Open redirect via transitional IPv6 addresses on dual-stack networks |
| GHSA-jhjh-776m-4765 | CVE-2022-31152 | HIGH | Denial of service due to incorrect application of event authorization rules |
| GHSA-p9qp-c452-f9r7 | CVE-2022-39374 | HIGH | Synapse Denial of service due to incorrect application of event authorization rules during state resolution |
| GHSA-2hwx-mjrm-v3g8 | CVE-2021-21274 | MODERATE | Denial of service attack via .well-known lookups |
| GHSA-45cj-f97f-ggwv | CVE-2022-39335 | HIGH | Synapse does not apply enough checks to servers requesting auth events of events in a room |
| GHSA-w9fg-xffh-p362 | CVE-2021-21394 | MODERATE | Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints |
| GHSA-7565-cq32-vx2x | CVE-2023-42453 | MODERATE | matrix-synapse vulnerable to improper validation of receipts allows forged read receipts |
| GHSA-hxmp-pqch-c8mm | CVE-2020-26257 | HIGH | Denial of service attack via incorrect parameters in Matrix Synapse |
| GHSA-5chr-wjw5-3gq4 | CVE-2023-45129 | MODERATE | matrix-synapse vulnerable to denial of service due to malicious server ACL events |
| GHSA-3x8c-fmpc-5rmq | CVE-2020-26891 | MODERATE | Cross-site scripting (XSS) vulnerability in the fallback authentication endpoint |
| GHSA-26c5-ppr8-f33p | CVE-2023-32682 | MODERATE | Synapse has improper checks for deactivated users during login |
| GHSA-cppw-2mf8-qpm5 | CVE-2019-18835 | HIGH | Improper Verification of Cryptographic Signature in matrix-synapse |
| GHSA-3hfw-x7gx-437c | CVE-2021-41281 | HIGH | Path traversal in Matrix Synapse |
| GHSA-jrqm-v8cv-53ww | CVE-2019-5885 | HIGH | Matrix Synapse Predictable Secret Key |
| GHSA-jj53-8fmw-f2w2 | CVE-2021-39163 | LOW | Adding a private/unlisted room to a community exposes room metadata in an unauthorised manner. |
| GHSA-3x4c-pq33-4w3q | CVE-2021-39164 | LOW | Improper authorisation of members discloses room membership to non-members |
| GHSA-v936-j8gp-9q3p | CVE-2021-21273 | MODERATE | Open redirects on some federation and push requests |
| GHSA-3h7q-rfh9-xm4v | CVE-2024-31208 | MODERATE | Synapse V2 state resolution weakness allows Denial of Service (DoS) |
| GHSA-vmcc-4p4x-x7wg | CVE-2018-10657 | HIGH | Matrix Synapse DoS |
| GHSA-fmvh-rvq5-hhjx | CVE-2018-16515 | HIGH | Matrix Synapse Improper Signature Validation |
| GHSA-ch5v-fhg8-7gv9 | CVE-2018-12423 | HIGH | Matrix Synapse Authorization Error |
| GHSA-v8wm-g9f2-xjv4 | CVE-2018-12291 | HIGH | Matrix Synapse Security Filtering Flaw |
| GHSA-4822-jvwx-w47h | CVE-2022-41952 | MODERATE | Uncontrolled Resource Consumption in Matrix Synapse |
| GHSA-7h5v-85w9-pq6c | - | MODERATE | Denial of service (via resource exhaustion) due to improper input validation in third-party identifier endpoint |
CVE-2026-45076 at a Glance
How to Fix CVE-2026-45076
To remediate this vulnerability, upgrade all affected Matrix synapse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install matrix-synapse>=1.152.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show matrix-synapse
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-45076, inspect your installed packages using pip:
pip show matrix-synapse
Analyze the terminal output to locate any version of Matrix synapse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.152.1), your application is affected.
Note: The pip show matrix-synapse command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Matrix synapse, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45076 Affected Matrix synapse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-synapse
|
PyPI |
< 1.152.1
|
1.152.1
|
References
Frequently Asked Questions
What is CVE-2026-45076?
Which Matrix synapse versions are affected?
What version fixes CVE-2026-45076?
Is matrix-synapse affected?
What CWE is associated with CVE-2026-45076?
How can I check PyPI dependencies for CVE-2026-45076?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6qf2-7x63-mm6v",
"modified" : "2026-06-09T10:18:35Z",
"published" : "2026-05-14T16:18:46Z",
"aliases" : [ "CVE-2026-45076" ],
"summary" : "Synapse pagination Denial of Service",
"details" : "### Impact\n\nIn federated rooms, malicious homeservers can craft room events in such a way that prevents Synapse from providing full history to paginating clients.\n\nClients could therefore fail to display room history.\n\n### Patches\n\nUpdate to Synapse 1.152.1 or later.\n\n### Workarounds\n\nThere are no known workarounds for this issue.\n\n### Identifiers\n\n- ELEMENTSEC-2025-1636\n\n### For more information\n\nIf you have any questions or comments about this advisory, please email us at [security at element.io](mailto:security@element.io).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "matrix-synapse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.152.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/element-hq/synapse/security/advisories/GHSA-6qf2-7x63-mm6v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45076"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/element-hq/synapse"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2026-194.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-14T16:18:46Z",
"nvd_published_at" : "2026-05-28T17:16:31Z"
}
}