Live threats

All CVEs / Matrix

CVE-2020-26891Matrix Synapse

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Oct 19, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

AuthRestServlet in Matrix Synapse before 1.21.0 is vulnerable to XSS due to unsafe interpolation of the session GET parameter. This allows a remote attacker to execute an XSS attack on the domain Synapse is hosted on, by supplying the victim user with a malicious URL to the /_matrix/client/r0/auth/*/fallback/web or /_matrix/client/unstable/auth/*/fallback/web Synapse endpoints.

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.21.0 1.21.0 pip install "matrix-synapse>=1.21.0"
PyPI matrix-synapse < 1.21.0 1.21.0 pip install "matrix-synapse>=1.21.0"

Per OSV / GitHub Advisories (GHSA-3x8c-fmpc-5rmq, PYSEC-2020-238). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrixsynapse< 1.21.0

Official sources

References

Links published by the sources. Open them with care.