---
id: CVE-2025-10060
title: >-
  MongoDB Server may allow upsert operations retried within a transaction to
  violate unique index constraints, potentially causing an invariant failure and
  server crash during commit
summary: >-
  MongoDB Server may allow upsert operations retried within a transaction to
  violate unique index constraints, potentially causing an invariant failure and
  server crash during commit. This issue may be triggered by improper
  WriteUnitOfWork…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-672
vendor: mongodb
product: mongodb
affected:
  - 'mongodb >= 6.0.0, < 6.0.25'
  - 'mongodb >= 7.0.0, < 7.0.22'
  - 'mongodb >= 8.0.0, < 8.0.12'
patched:
  - mongodb 8.0.12
published: '2025-09-05'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-10060'
references:
  - url: 'https://jira.mongodb.org/browse/SERVER-95524'
    label: cna@mongodb.com
tags:
  - nvd
epss: 0.00378
epssPercentile: 0.29351
ingestedAt: '2026-09-30T23:29:32.369Z'
---

## Overview

MongoDB Server may allow upsert operations retried within a transaction to violate unique index constraints, potentially causing an invariant failure and server crash during commit. This issue may be triggered by improper WriteUnitOfWork state management.  This issue affects MongoDB Server v6.0 versions prior to 6.0.25, MongoDB Server v7.0 versions prior to 7.0.22 and MongoDB Server v8.0 versions prior to 8.0.12

## Affected

- `mongodb >= 6.0.0, < 6.0.25`
- `mongodb >= 7.0.0, < 7.0.22`
- `mongodb >= 8.0.0, < 8.0.12`

## Remediation

Upgrade past the affected range:

- `mongodb 8.0.12`
