Multiple cross-site scripting (XSS) vulnerabilities allow remote attackers to inject arbitrary web script or HTML via the `rename`, `tag`, `upload`, or `create folder` function. The payload can be in a folder, a tag, or a document's filename. If email consumption is configured in Papermerge, a malicious document can be sent by email and is automatically uploaded into the Papermerge web application, requiring no authentication to exploit XSS. Otherwise, authentication is required.