Theia "mini-browser" exploit

The mini-browser extension in Theia displays html files into an iframe. But currently we have the following settings:

These two things combined mean that when a file is previewed in Theia using the mini-browser extension, a malicious html file can connect to the Theia backend via websocket and do pretty much anything.