Improper Locking Affecting mongodb package, versions [5.0.0, 5.0.32)[6.0.0, 6.0.27)[7.0.0, 7.0.26)[8.0.0, 8.0.16)[8.2.0, 8.2.2)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MONGODB-14626182
  • published26 Dec 2025
  • disclosed9 Dec 2025
  • creditUnknown

Introduced: 9 Dec 2025

CVE-2025-14345  (opens in a new tab)
CWE-667  (opens in a new tab)

How to fix?

Upgrade mongodb to version 5.0.32, 6.0.27, 7.0.26, 8.0.16, 8.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Locking in the two-phase commit protocol for cross-shard transactions. An attacker can exploit this by triggering specific transaction timing scenarios to cause inconsistent writes or partial transaction application across shards.

References

CVSS Base Scores

version 4.0
version 3.1