CVE-2020-26891
JSON

6.1medium

Cross-site scripting (XSS) vulnerability in the fallback authentication endpoint

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
1.92% (higher than 80% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-3x8c-fmpc-5rmqPYSEC-2020-238

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
matrix-synapse (PyPI)before 1.21.0GitHub Advisory Database, PyPA Advisory Database
matrix synapsebefore 1.21.0NVD

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The fallback authentication endpoint served via Synapse was vulnerable to cross-site scripting (XSS) attacks. The impact depends on the configuration of the domain that Synapse is deployed on, but may allow access to cookies and other browser data, CSRF vulnerabilities, and access to other resources served on the same domain or parent domains.

Patches

This is fixed by #8444, which is included in Synapse v1.21.0.

Workarounds

If the homeserver is not configured to use reCAPTCHA, consent (terms of service), or single sign-on then the affected endpoint can be blocked at a reverse proxy:

  • /_matrix/client/r0/auth/.*/fallback/web
  • /_matrix/client/unstable/auth/.*/fallback/web
NVD (es)

AuthRestServlet en Matrix Synapse versiones anteriores a 1.21.0 es vulnerable a XSS debido a la interpolación insegura del parámetro GET de la sesión. Esto permite a un atacante remoto ejecutar un ataque XSS en el dominio en el que está alojado Synapse, suministrando al usuario víctima una URL maliciosa a los puntos finales de /_matrix/cliente/r0/auth/*/fallback/web o /_matrix/cliente/instable/auth/*/fallback/web Synapse

References

Sources

SourceRecordLicence
CVE ListCVE-2020-26891 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-3x8c-fmpc-5rmq changed 2026-07-08CC-BY-4.0
NVDCVE-2020-26891 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-238 changed 2023-11-08CC-BY-4.0