CVE-2021-21332
HIGH 8.2CVSS 3.1Cross-site scripting (XSS) vulnerability in the password reset endpoint
Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.27.0, the password reset 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. This is fixed in version 1.27.0.
- Published
- 26 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-246w-56m2-5899PYSEC-2021-133
- Sources
- NVDJSONOSV GHSA-246w-56m2-5899JSONOSV PYSEC-2021-133JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | synapsecpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:* |
< 1.27.0 | 1.27.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | PyPI | matrix-synapse | < 1.27.0 | 1.27.0 |
References
- https://github.com/matrix-org/synapse/commit/e54746bdf7d5c831eabe4dcea76a7626f1de73df · Patch, Third Party Advisory, WEB, FIX
- https://github.com/matrix-org/synapse/pull/9200 · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/synapse/releases/tag/v1.27.0 · Third Party Advisory, WEB
- https://github.com/matrix-org/synapse/security/advisories/GHSA-246w-56m2-5899 · Third Party Advisory, WEB, ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/
- https://nvd.nist.gov/vuln/detail/CVE-2021-21332 · ADVISORY
- https://github.com/matrix-org/synapse · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-133.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Mar 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Mar 2021)