Originally by @hesara
It is possible to inject HTML through exception stack messages and stack traces displayed in system error messages. The developer of an application is likely not to take this into account and may inadvertently introduce XSS vulnerabilities in applications through this mechanism.
Another path to exploit this is to convince the end user to paste text that will fail field validation and injects HTML/javascript.
This vulnerability was discovered by Wouter Coekaerts (http://wouter.coekaerts.be).
Imported from https://dev.vaadin.com/ issue #7671