# CVE-2021-21392: Open redirect via transitional IPv6 addresses on dual-stack networks

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/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): 0.94%, higher than 62% of CVEs (2026-12-01)
- Published: 2021-04-12T21:50:14.000Z
- Modified: 2026-07-08T06:28:51.474Z
- Also known as: GHSA-5wrh-4jwv-5w78, PYSEC-2021-25
- 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.28.0 requests to user provided domains were not restricted to external IP addresses when transitional IPv6 addresses were used. Outbound requests to federation, identity servers, when calculating the key validity for third-party invite events, sending push notifications, and generating URL previews are affected. This could cause Synapse to make requests to internal infrastructure on dual-stack networks. See referenced GitHub security advisory for details and workarounds.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.28.0
- matrix-synapse (PyPI): before 1.28.0rc1; before 1.28.0
- matrix synapse: before 1.28.0
- fedoraproject fedora: 34

## Every score

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

## References

- <https://pypi.org/project/matrix-synapse/> (package, product, third-party-advisory)
- <https://github.com/matrix-org/synapse/security/advisories/GHSA-5wrh-4jwv-5w78> (advisory, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/9240> (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-21392> (advisory)
- <https://github.com/matrix-org/synapse/commit/4ca054a4eaa714d0befb4fc30b19a1131e52c9cc> (web)
- <https://github.com/matrix-org/synapse> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-25.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY> (web)
- <https://pypi.org/project/matrix-synapse> (web)

## Sources

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

---

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