Live threats

All CVEs / Matrix

CVE-2021-21333Matrix Synapse

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Mar 26, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74, CWE-79
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N

What happens

Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.27.0, the notification emails sent for notifications for missed messages or for an expiring account are subject to HTML injection. In the case of the notification for missed messages, this could allow an attacker to insert forged content into the email. The account expiry feature is not enabled by default and the HTML injection is not controllable by an attacker. This is fixed in version 1.27.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Synapse.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI matrix-synapse < 1.27.0 1.27.0 pip install "matrix-synapse>=1.27.0"
PyPI matrix-synapse < 1.27.0 1.27.0 pip install "matrix-synapse>=1.27.0"

Per OSV / GitHub Advisories (GHSA-c5f8-35qr-q4fm, PYSEC-2021-134). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrixsynapse< 1.27.0
fedoraprojectfedora34

Official sources

References

Links published by the sources. Open them with care.