The ongetmissingevents function in handlers/federation.py in Matrix Synapse before 0.31.1 has a security bug in the getmissing_events federation API where event visibility rules were not applied correctly.
{ "urgency": "not yet assigned" }