Improper Validation of Specified Type of Input Affecting matrix-synapse package, versions [,1.138.3)[1.139.0rc2, 1.139.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-MATRIXSYNAPSE-13506786
  • published10 Oct 2025
  • disclosed8 Oct 2025
  • creditDenis Kasak

Introduced: 8 Oct 2025

NewCVE-2025-61672  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade matrix-synapse to version 1.138.3, 1.139.1 or higher.

Overview

matrix-synapse is an ecosystem for open federated Instant Messaging and VoIP.

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input due to insufficient validation of device keys. An attacker can disrupt federation functionality and unpredictably break outbound federation to other homeservers by registering on the victim homeserver and submitting invalid device keys. This is only exploitable if the attacker is a registered user on the victim homeserver.

Note

Note that even though 1.138.3 and 1.139.1 fix the vulnerability, they inadvertently introduced an unrelated regression. For this reason, we recommend skipping these releases and upgrading straight to 1.138.4 and 1.139.2.

CVSS Base Scores

version 4.0
version 3.1