CVE-2025-61672: Matrix Synapse Device Key Validation Vulnerability

matrix-synapse Updated 07 Jul 2026

Summary

07/07/2026
Yes i
Moderate
5.3

CVE-2025-61672: Synapse's invalid device keys degrade federation functionality. Affects matrix-synapse across 2 version ranges.

< 1.138.3 >= 1.139.0rc2, < 1.139.1

Fixed in 1.138.3 or 1.139.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Matrix Synapse is an open-source server for Matrix, a decentralized communication protocol. It enables real-time communication and collaboration across various platforms. Synapse is widely used for its scalability and flexibility, allowing users to create and manage their own communication servers. However, prior versions of Synapse are vulnerable to a security issue that compromises federation functionality due to inadequate validation of device keys.

Vulnerability Detail

The vulnerability arises from a lack of validation for device keys in Synapse versions before 1.138.3 and in version 1.139.0. This flaw allows attackers who are registered on the victim's homeserver to degrade federation functionality, potentially disrupting outbound federation to other homeservers. The impact of this vulnerability can lead to unpredictable behavior in communication, affecting the reliability of the service.

How To Fix

Latest published version: 1.163.0 as of 22 Oct 2026

pip install --upgrade "matrix-synapse==1.163.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.138.3 1.138.3
    pip install --upgrade "matrix-synapse==1.138.3"
  • >= 1.139.0rc2, < 1.139.1 1.139.1
    pip install --upgrade "matrix-synapse==1.139.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

The vulnerability can only be exploited by users registered on the victim homeserver. Therefore, restricting access to the homeserver and monitoring registered users can serve as a temporary workaround until the package is updated.

Conclusion

The vulnerability identified as CVE-2025-61672 in Matrix Synapse poses a significant risk to federation functionality due to improper validation of device keys. Users are urged to update to the patched versions to ensure the security and reliability of their communication services.

See every vulnerability recorded for matrix-synapse →

Share this vulnerability

FAQ

The vulnerability is due to a lack of validation for device keys, allowing registered users to disrupt federation functionality.

Versions before 1.138.3 and 1.139.0 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

It is recommended to update to versions 1.138.4 or 1.139.2 to mitigate the vulnerability.

The CVSS score for this vulnerability is 5.3.

Related vulnerabilities

Recent vulnerabilities recorded for matrix-synapse.

How To Fix

Latest published version: 1.163.0 as of 22 Oct 2026

pip install --upgrade "matrix-synapse==1.163.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.138.3 1.138.3
    pip install --upgrade "matrix-synapse==1.138.3"
  • >= 1.139.0rc2, < 1.139.1 1.139.1
    pip install --upgrade "matrix-synapse==1.139.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback