Improper Check for Unusual or Exceptional Conditions Affecting mongodb package, versions [4.0.0, 4.0.27)[4.2.0, 4.2.16)[4.4.0, 4.4.9)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.04% (60th 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-14606785
  • published25 Dec 2025
  • disclosed24 Dec 2025
  • creditUnknown

Introduced: 24 Dec 2025

CVE-2021-20330  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade mongodb to version 4.0.27, 4.2.16, 4.4.9 or higher.

Overview

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions via of oplog entries processed by the applyOps command. An attacker with basic CRUD permissions on a replicated collection can submit specially malformed oplog entries, causing secondary nodes to encounter invalid states during replication.

CVSS Base Scores

version 4.0
version 3.1