Advisory

GHSA-5wrh-4jwv-5w78

Also known as: CVE-2021-21392, PYSEC-2021-25

Summary

Open redirect via transitional IPv6 addresses on dual-stack networks

Details

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

Patches
This issue is fixed by #9240.

Workarounds
Outbound requests to the following address ranges can be blocked by a firewall, if unused for internal communication between systems:

  • ::ffff/80
  • ::0000/80 (note that this IP range is considered deprecated by the IETF)
  • 2002::/16 (note that this IP range is considered deprecated by the IETF)

References

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-04-13 15:13 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

matrix-synapse

PyPI · All systems

Affected

  • introduced 0, fixed 1.28.0rc1 (ecosystem)

Fixed versions

1.28.0rc1

Fix

  • Fixed version 1.28.0rc1
    pip install --upgrade matrix-synapse==1.28.0rc1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences