Telegram (v4.9.155353) was rendering file:// links + opening them via NSWorkspace.open -> code execution.
Telegram for macOS rendered file:// and custom URI scheme links from website previews and opened them via NSWorkspace.open, allowing an attacker to execute arbitrary executables or launch applications. The same issue existed on iOS, though impact there was possibly limited to URI schemes.
Telegram