DSpace is an open source software used by more than 2,000 organizations and institutions worldwide to provide durable access to digital resources. In the affected versions, when an HTML, XML, or JavaScript Bitstream is downloaded, the user's browser may execute any embedded JavaScript, potentially leading to an XSS attack. This issue can be exploited by a user with Submitter privileges who uploads a malicious HTML/XML/JavaScript file. The attack occurs when a visitor or logged-in user downloads the file or clicks on a download link shared by the attacker. If the repository is configured to only download HTML/XML/JavaScript Bitstreams using the `Content-Disposition: attachment` header, the attack is no longer possible.