CVE-2019-11842: Matrix Synapse - Mishandling of Random Number Generation

matrix-synapse Updated 02 Oct 2025

Summary

09/05/2019
Yes i
Unrated
Not published

CVE-2019-11842: An issue was discovered in Matrix Sydent before 1.0.3 and Synapse before 0.99.3.1. Affects matrix-synapse versions < 0.99.3.1. Fixed in 0.99.3.1. How to fix ↓

Also tracked for

The same CVE-2019-11842 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Matrix Synapse is an open-source messaging server that enables secure communication and collaboration. It provides a decentralized architecture for real-time communication and supports end-to-end encryption. The vulnerability identified as CVE-2019-11842 affects versions prior to 0.99.3.1 of Matrix Synapse. This vulnerability is related to the mishandling of random number generation, which can lead to the predictability of authentication tokens and random IDs.

Vulnerability Detail

The vulnerability arises from the incorrect implementation of random number generation in Matrix Sydent and Synapse. This flaw allows attackers to predict authentication tokens or random IDs, compromising the security of the system. By exploiting this vulnerability, an attacker could gain unauthorized access to sensitive information or perform malicious actions within the affected system. It is crucial to address this vulnerability promptly to prevent potential security breaches.

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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.99.3.1

This is the first release that contains the fix.

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

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The vulnerability in Matrix Synapse, identified as CVE-2019-11842, involves the mishandling of random number generation. This flaw can lead to the predictability of authentication tokens and random IDs, potentially compromising the security of the system. It is crucial to update Matrix Synapse to version 0.99.3.1 or later to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for matrix-synapse →

Share this vulnerability

FAQ

Matrix Synapse is an open-source messaging server that enables secure communication and collaboration.

This vulnerability allows attackers to predict authentication tokens or random IDs, potentially compromising the security of the system.

Versions prior to 0.99.3.1 of Matrix Synapse are affected by this vulnerability.

To fix this vulnerability, update Matrix Synapse to version 0.99.3.1 or later.

For more information about this vulnerability, refer to the official advisory provided by the Matrix Synapse project.

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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.99.3.1

This is the first release that contains the fix.

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

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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