PyPI: matrix-synapse

CVE-2026-45076

Safety vulnerability ID: SFTY-20260514-30731

Safety legacy ID: pyup.io-97491

Affected versions of the matrix-synapse package are vulnerable to Improper Input Validation due to insufficient validation of federation event data used during room history pagination. The pagination handler fails to validate that room events received from remote homeservers conform to expected structural constraints, allowing maliciously crafted events to corrupt the pagination state.

Created at: Jun 4, 2026Updated at: Jun 4, 2026

Overview

Synapse pagination Denial of Service

Advisory

Affected versions of the matrix-synapse package are vulnerable to Improper Input Validation due to insufficient validation of federation event data used during room history pagination. The pagination handler fails to validate that room events received from remote homeservers conform to expected structural constraints, allowing maliciously crafted events to corrupt the pagination state.

Affected Package

Affecting matrix-synapse package, versions
<1.152.1

Also affects

---

How to Fix

Upgrade
matrix-synapse
to
1.152.1
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more