CVE-2021-21332
Cross-site scripting (XSS) vulnerability in the password reset endpoint
Reported by github_m · Published March 26, 2021
matrix-synapse is fixed in e54746bdf7d5c831eabe4dcea76a7626f1de73df and 1.27.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| matrix-synapse | PyPI | e54746bdf7d5c831eabe4dcea76a7626f1de73df, 1.27.0 |
| synapse | matrix | 1.27.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.27.0 |
| matrix-org | synapse | 0 |
| PyPI | matrix-synapse | 0 |
Timeline
- Mar 26, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 27, 2021 CVE Updated
- Mar 10, 2026 Security Advisory
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21332
vulnetix vdb fixes CVE-2021-21332
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21332/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-a627cfd31e vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-21332 advisory
- https://github.com/advisories/GHSA-246w-56m2-5899 advisory
- https://github.com/matrix-org/synapse url
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-133.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY url