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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| matrix-synapse (PyPI) | before 1.21.0 | GitHub Advisory Database, PyPA Advisory Database |
| matrix synapse | before 1.21.0 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV: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
| https://github.com/matrix-org/synapse/pull/8444 | issue-tracking, patch, third-party-advisory, web | |
| https://matrix.org/blog/2020/10/15/synapse-1-21-2-released-and-security-advisory | advisory, release-notes, vendor-advisory, web | |
| https://github.com/matrix-org/synapse/releases/tag/v1.21.2 | release-notes, third-party-advisory, web | |
| https://github.com/matrix-org/synapse/security/advisories/GHSA-3x8c-fmpc-5rmq | advisory, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26891 | advisory | |
| https://github.com/matrix-org/synapse | package | |
| https://github.com/matrix-org/synapse/releases | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2020-238.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26891 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3x8c-fmpc-5rmq changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26891 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-238 changed 2023-11-08 | CC-BY-4.0 |