Reachable Assertion Affecting mongodb package, versions [5.0.0, 5.1.0-rc0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.18% (64th 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-14606784
  • published25 Dec 2025
  • disclosed24 Dec 2025
  • creditUnknown

Introduced: 24 Dec 2025

CVE-2021-32037  (opens in a new tab)
CWE-617  (opens in a new tab)

How to fix?

Upgrade mongodb to version 5.1.0-rc0 or higher.

Overview

Affected versions of this package are vulnerable to Reachable Assertion due to improper handling of internal invariants when processing certain aggregation requests sent directly to shard nodes. An authorized user can trigger a condition that violates internal assumptions, causing the shard process to terminate or enter an unrecoverable error state. An attacker can exploit this by issuing a specially crafted aggregation request to a shard, resulting in server exit or service disruption.

CVSS Base Scores

version 4.0
version 3.1