Skip to main content
Vulnerability Database/CVE-2026-97665

CVE-2026-97665: Nexus Repository 3 Auth Bypass Vulnerability

CVE-2026-97665 is an authorization bypass flaw in Nexus Repository 3 that allows users with read-only privileges to upload NuGet symbol packages without proper write permissions. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97665 Overview

CVE-2026-97665 is a missing authorization vulnerability [CWE-862] in Sonatype Nexus Repository 3. The flaw resides in the NuGet Components API upload path, which fails to enforce write-permission checks on symbol package (.snupkg) uploads. An account holding only read and browse privileges on a hosted NuGet repository can upload and persist symbol packages, bypassing the authorization control applied to ordinary NuGet package uploads. Exploitation requires a hosted NuGet repository with Symbol Server enabled. When anonymous access is enabled, the built-in anonymous user holds read and browse privileges by default, so unauthenticated attackers can also satisfy the precondition.

Critical Impact

Low-privileged or anonymous users can persist attacker-controlled NuGet symbol packages to hosted repositories, undermining integrity of artifact distribution.

Affected Products

  • Sonatype Nexus Repository 3 (hosted NuGet repositories with Symbol Server enabled)
  • Fixed in Sonatype Nexus Repository 3.97.0
  • Deployments with anonymous access enabled are reachable without authentication

Discovery Timeline

  • 2026-10-15 - CVE-2026-97665 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-97665

Vulnerability Analysis

The vulnerability stems from an inconsistent authorization model in the NuGet Components API. Nexus Repository enforces a write-permission check when callers upload standard NuGet packages (.nupkg) to a hosted repository. The upload code path for NuGet symbol packages (.snupkg) does not apply the equivalent check. As a result, callers with only nx-repository-view-nuget-<repo>-read and -browse privileges can submit symbol packages that the server accepts and stores.

Symbol packages carry debug symbols and associated metadata that downstream developers consume through the Symbol Server interface. Persisting attacker-controlled .snupkg content inside a trusted hosted repository provides a foothold for supply-chain tampering and misrepresentation of artifact provenance. The CWE-862 classification reflects the absence of an authorization decision at a security-relevant action.

Root Cause

The root cause is a missing authorization check in the NuGet Components API handler responsible for symbol package uploads. The .snupkg upload code path omits the write-permission guard enforced on the .nupkg path, so Nexus relies only on read and browse privileges before accepting the write.

Attack Vector

The attack is remote and network-based. An attacker sends an HTTP request to the NuGet Components API upload endpoint of a hosted repository that has Symbol Server enabled. Authentication succeeds with any account holding read and browse privileges on the target repository. When anonymous access is enabled, no credentials are required because the built-in anonymous principal already holds those privileges. The attacker submits a crafted .snupkg payload, which Nexus persists in the hosted repository and exposes through the Symbol Server interface.

No verified public proof-of-concept code is available at this time. See the Sonatype Nexus Repository Release Notes and the Sonatype Support Article for vendor technical details.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-97665

Indicators of Compromise

  • Unexpected .snupkg artifacts appearing in hosted NuGet repositories, especially from accounts without historical write activity.
  • PUT or POST requests to the NuGet Components API upload endpoint originating from the anonymous principal or read/browse-only accounts.
  • New symbol packages served from the Symbol Server interface that do not correspond to a matching .nupkg publication event.

Detection Strategies

  • Correlate Nexus audit log entries for symbol package uploads with the acting user's effective privileges, and flag uploads performed without an associated write role.
  • Alert on .snupkg uploads attributed to the anonymous user on any hosted NuGet repository with Symbol Server enabled.
  • Baseline normal publishers for each hosted NuGet repository and alert on first-seen uploaders of symbol packages.

Monitoring Recommendations

  • Forward Nexus Repository access and audit logs to a centralized analytics platform and retain them for post-incident review.
  • Monitor HTTP access logs at the reverse proxy for unauthenticated requests to NuGet symbol upload paths.
  • Track changes to Symbol Server configuration and anonymous access settings on hosted NuGet repositories.

How to Mitigate CVE-2026-97665

Immediate Actions Required

  • Upgrade Sonatype Nexus Repository to version 3.97.0 or later, which contains the fix for CVE-2026-97665.
  • Disable anonymous access unless there is a documented business need and compensating controls.
  • Audit existing .snupkg content in hosted NuGet repositories and remove any artifacts that cannot be attributed to an authorized publisher.

Patch Information

Sonatype addressed the authorization gap in Nexus Repository 3.97.0. Administrators should review the Sonatype Nexus Repository Release Notes and the Sonatype Support Article for upgrade procedures and verification steps. The patch adds the missing write-permission enforcement to the NuGet symbol package upload code path.

Workarounds

  • Disable Symbol Server on hosted NuGet repositories where symbol publishing is not required, removing the precondition for exploitation.
  • Disable the built-in anonymous user or revoke its read and browse privileges on NuGet repositories until the upgrade is complete.
  • Restrict network access to the Nexus Repository NuGet API using firewall rules or reverse proxy allowlists limited to trusted publisher networks.
bash
# Configuration example: review and disable anonymous access via Nexus REST API
curl -u admin:<password> -X PUT \
  -H "Content-Type: application/json" \
  -d '{"enabled": false, "userId": "anonymous", "realmName": "NexusAuthorizingRealm"}' \
  https://nexus.example.com/service/rest/v1/security/anonymous

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.