Fundamentally I feel whole "web" as in anything running in browser is insane an broken security wise. When you allow mostly arbitrary code to run when you load a page... Well it can do mostly arbitrary things and everyone else needs to protect against it.
And when you have enough rights, you get to add arbitrary code to everywhere on your site.
And when you have enough rights, you get to add arbitrary code to everywhere on your site.