Sonatype Nexus Security Advisory:
Date: August 5, 2021
Affected Versions: Nexus Repository 3 versions up to and including 3.32.0
Fixed in Version: Nexus Repository OSS/Pro version 3.33.0
Risk: Medium - 6.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N)
We have discovered multiple cross-site scripting (XSS) vulnerabilities in Nexus Repository 3.
An authenticated attacker with the ability to add HTML files to a repository could redirect users to Nexus Repository's pages with code modifications. We have resolved the issue by adding a repository configuration option to force downloading HTML files instead of rendering them in browser. This advisory provides the pertinent information needed to properly address this vulnerability along with the details on how to reach us if you have any further questions or concerns.
We are not aware of any active exploits taking advantage of this issue. However, we strongly encourage all users of Nexus Repository to immediately take the steps outlined in this advisory.
We highly recommend that you upgrade all affected instances of Nexus Repository to version 3.33.0 or later. You can download the latest version from the following location:
For detailed information on upgrading, please see the following:
Upgrading Nexus Repository 3.1.0 and Newer
This issue was discovered and reported by Roberto Zanga
If you run into any problems or have any questions/concerns, please contact us by filing a ticket at https://support.sonatype.com.
Frequently Asked Questions:
Q: What is the risk associated with this vulnerability?
Q: What preconditions must be met in order to be vulnerable?
A: An attacker must have a local account with the ability to add HTML files to a repository and another user must view malicious entities.
Q: Are there implications associated with this advisory itself?
A: Disclosure unfortunately means bad actors may try to take advantage. While we have initially limited the information to the minimum details necessary for users to affect an appropriate fix, this merely slows down a would be attacker. As such, we are advising all organizations utilizing NXRM to immediately assess their individual impact and take appropriate action in response.
Q: Where can I obtain more information associated with the vulnerability?
A: At this time, and in the interest of best protecting our user community, we are limiting the information released to that absolutely required in order to assess impact and affect remediation. Please contact support for more information.
Q: Why is Sonatype making this information available?
A: This is part of a responsible disclosure process. Given Nexus Repository is an open source project with widespread usage, notifying the user base will invariably lead to broad dissemination. We are taking a concerted and proactive approach in our outreach activities and an effort to achieve the most rapid remediation possible.