CVE-2020-26891Matrix Synapse
Medium 6.1 No auth needed
Follow: this CVE · Matrix · Matrix Synapse We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Synapse.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| matrix | synapse | < 1.21.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- matrix.org Release Notes Vendor Advisory