# CVE-2021-21273: Open redirects on some federation and push requests

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.82%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-02-26T17:25:29.000Z
- Modified: 2026-07-08T06:27:53.790Z
- Also known as: GHSA-v936-j8gp-9q3p, PYSEC-2021-131
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## Description

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.25.0, requests to user provided domains were not restricted to external IP addresses when calculating the key validity for third-party invite events and sending push notifications. This could cause Synapse to make requests to internal infrastructure. The type of request was not controlled by the user, although limited modification of request bodies was possible. For the most thorough protection server administrators should remove the deprecated `federation_ip_range_blacklist` from their settings after upgrading to Synapse v1.25.0 which will result in Synapse using the improved default IP address restrictions. See the new `ip_range_blacklist` and `ip_range_whitelist` settings if more specific control is necessary.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.25.0
- matrix-synapse (PyPI): before 1.25.0; before 30fba6210834a4ecd91badf0c8f3eb278b72e746
- matrix synapse: before 1.25.0
- fedoraproject fedora: 34

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.1 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/matrix-org/synapse/releases/tag/v1.25.0> (third-party-advisory, web)
- <https://github.com/matrix-org/synapse/security/advisories/GHSA-v936-j8gp-9q3p> (advisory, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/8821> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/commit/30fba6210834a4ecd91badf0c8f3eb278b72e746> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21273> (advisory)
- <https://github.com/matrix-org/synapse> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-131.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY> (web)

## Sources

- CVE List: [CVE-2021-21273](https://www.cve.org/CVERecord?id=CVE-2021-21273), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-v936-j8gp-9q3p](https://github.com/advisories/GHSA-v936-j8gp-9q3p), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21273](https://nvd.nist.gov/vuln/detail/CVE-2021-21273), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-131](https://osv.dev/vulnerability/PYSEC-2021-131), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-21273 · Whole record: https://cve.day/CVE-2021-21273.json · Rebuilt by cve.day 2026-11-25T22:58:00.084Z
