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-97667 Overview
CVE-2026-97667 is a stored cross-site scripting (XSS) vulnerability [CWE-79] in Sonatype Nexus Repository 3. A user holding the edit permission on a hosted R repository can embed script content in the metadata of an uploaded R package. The script executes in the browser of any user who opens the package details in the Browse user interface, running with the viewing user's permissions. The anonymous user account is also in scope when an administrator grants it edit rights on the affected repository.
Critical Impact
Authenticated attackers with repository edit rights can execute arbitrary JavaScript in the browsers of other users, including administrators who view the malicious package.
Affected Products
- Sonatype Nexus Repository 3 (versions prior to 3.97.0)
- Hosted R repository format
- Browse user interface component
Discovery Timeline
- 2026-10-15 - CVE CVE-2026-97667 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-97667
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw in the handling of R package metadata within Sonatype Nexus Repository 3. When an authenticated user with edit permission uploads an R package to a hosted R repository, the server stores metadata fields without sufficient output encoding. The Browse user interface then renders those fields in the package details view. Because the rendered output is interpreted as HTML, embedded script content executes in the viewer's browser session.
The payload runs with the permissions of the viewing user. If an administrator opens the malicious package, the script inherits administrative privileges within the application context. This creates a privilege escalation path from a limited repository editor to full administrative control.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The application accepts metadata from uploaded R packages and later includes that content in HTML responses served by the Browse interface without context-aware escaping.
Attack Vector
An attacker needs valid credentials and the edit permission on a hosted R repository. The attacker uploads a crafted R package whose metadata contains JavaScript. When a victim navigates to the package details page in the Browse user interface, the script runs in the victim's browser. User interaction is required because the victim must open the package details view. See the Sonatype Nexus 3.97 Release Notes and the Sonatype Support Article for additional technical context.
Detection Methods for CVE-2026-97667
Indicators of Compromise
- R packages in hosted repositories whose metadata fields contain HTML tags, <script> elements, or JavaScript event handlers such as onerror or onload.
- Unexpected outbound browser requests originating from sessions that recently viewed R package details in the Nexus Repository Browse UI.
- New or modified R packages uploaded by low-privilege accounts shortly before administrator session anomalies.
Detection Strategies
- Audit the metadata of all R packages in hosted R repositories for script tags, HTML entities, and non-standard characters inconsistent with legitimate CRAN-style descriptions.
- Review Nexus Repository audit logs for package upload events by accounts holding edit permissions on R repositories, and correlate with subsequent administrator Browse activity.
- Inspect browser session telemetry for anomalous script execution or token exfiltration originating from the Nexus Repository web application domain.
Monitoring Recommendations
- Enable and centralize Nexus Repository audit logs covering repository content changes and permission grants.
- Monitor for new accounts receiving edit permissions on hosted R repositories, especially the anonymous account.
- Alert on administrator sessions that interact with recently uploaded R packages from untrusted contributors.
How to Mitigate CVE-2026-97667
Immediate Actions Required
- Upgrade Sonatype Nexus Repository 3 to version 3.97.0 or later as described in the Sonatype Nexus 3.97 Release Notes.
- Review which accounts hold edit permission on hosted R repositories and remove the permission from the anonymous user if it was granted.
- Audit existing R package metadata for script content and remove or republish affected packages.
Patch Information
Sonatype addresses this vulnerability in Nexus Repository 3.97.0. Review the Sonatype Support Article for upgrade guidance and version-specific remediation details.
Workarounds
- Restrict edit permissions on hosted R repositories to a minimal set of trusted accounts until the upgrade is applied.
- Disable the anonymous user account or revoke its write access to R repositories.
- Advise administrators to avoid opening the Browse details view for R packages uploaded by untrusted contributors until patching is complete.
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

