Good catch! The XSS error was introduced with the implementation of error handling, but is a really unwanted side effect :)
I've created two issues on GitHub (https://github.com/remie/YouTransfer/issues/107, https://github.com/remie/YouTransfer/issues/108) which will be fixed in a new hotfix release asap.