Sonatype Nexus Security Advisory
Date: December 2, 2026
Affected Versions: All Sonatype Nexus Repository 3 CE/Pro versions from 3.88.0 up to, but not including, 3.99.0. In versions 3.88.0 to 3.89.x, Terraform hosted repositories are available only if an administrator has explicitly enabled them with a feature flag.
Fixed in Version: Sonatype Nexus Repository 3 CE/Pro version 3.99.0
CVSS: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N = 6.0 (Medium)
CWE: CWE-650: Trusting HTTP Permission Methods on the Server Side
Sonatype Guide: https://guide.sonatype.com/vulnerability/CVE-2026-136960
Summary
A vulnerability in Sonatype Nexus Repository 3 allows an attacker who holds only the read permission on a Terraform hosted repository to upload modules to that repository. The upload should require the edit permission. The uploaded modules are stored in the repository, and the module version list is updated to include them.
The attacker must have signed in with valid credentials and must hold the read permission on a Terraform hosted repository. If anonymous access is enabled, a user who has not supplied credentials (the anonymous user) has read access to all repositories by default. That user can also exploit this vulnerability.
At the time of this advisory, Sonatype is not aware of this vulnerability being actively exploited in the wild.
Recommendation
Users are advised to upgrade to Sonatype Nexus Repository 3 CE/Pro version 3.99.0 or later. Downloads are available at https://help.sonatype.com/en/download.html.
The upgrade does not remove modules that were uploaded before the fix. After you upgrade, review each Terraform hosted repository. Check the uploader of each module version. Remove any module version that was uploaded by an account that does not hold the edit permission on the repository.
Immediate Mitigation Options
There is no configuration change that fully mitigates this vulnerability without upgrading. The following measures reduce exposure:
- Restrict network access: If you use a reverse proxy or a web application firewall, allow only the HTTP methods GET, HEAD and PUT for requests to Terraform hosted repositories.
- Disable anonymous access: If you do not need anonymous access, disable it in the Nexus Repository security settings. If you need anonymous access, change the anonymous role so that it does not grant read access to Terraform hosted repositories.
- Reduce read access: Grant read access to Terraform hosted repositories only to users and systems that need it.
- Remove unused repositories: If you do not use a Terraform hosted repository, delete it.
Credit
This issue was discovered and reported responsibly by Sanjok Karki (@thesanjok) of National Forensic Sciences University, Goa via Sonatype’s Bug Bounty Program.
Frequently Asked Questions
Q: What is the risk associated with this vulnerability?
A: An attacker who is allowed only to read a Terraform hosted repository can add modules to it, including in namespaces that the attacker does not own. A system that later downloads a module from the repository can receive content that the attacker uploaded. Terraform modules contain code that the downloading system runs. The vulnerability does not let the attacker read content that the attacker cannot already read. The vulnerability does not let the attacker replace a module version that already exists when the repository uses the default deployment policy (Disable redeploy).
Q: What preconditions must be met in order to be vulnerable?
A: The attacker must have network access to the Nexus Repository instance. A Terraform hosted repository must exist. The attacker must have read access to that repository. This can be an account that has signed in with valid credentials and holds the read permission on that repository. If anonymous access is enabled, it can also be a user who has not supplied credentials (the anonymous user), because the anonymous user has read access to all repositories by default. In versions 3.88.0 to 3.89.x, Terraform hosted repositories are available only if an administrator has explicitly enabled them with a feature flag.
Q: Are there implications associated with this advisory itself?
A: Publishing this advisory may enable malicious actors to attempt to exploit this vulnerability. Affected users should assess their exposure and apply the recommended upgrade or interim mitigation as soon as practicable.
Q: Why is Sonatype making this information available?
A: Sonatype follows responsible disclosure practices. We coordinate with security researchers who report vulnerabilities to us in good faith, and we publish advisories after a fix is available so that users can take informed action to protect their installations.