Forum Moderators: open
On the visitor's PC JavaScript can read all the cookies that your server has sent to the visitor, and pass that information to the script author. This would enable session hijacking.
The script author would be in full control of your page:
document.body.style.display="none",
or
location="[any URL here]", or...
I recommend not allowing users to put JavaScript on your pages.