Uncontrolled Recursion Affecting mongodb package, versions [,7.0.29)[8.0.0-alpha,8.0.18)[8.1.0-alpha,8.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (19th 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-15264522
  • published11 Feb 2026
  • disclosed10 Feb 2026
  • creditUnknown

Introduced: 10 Feb 2026

CVE-2026-1849  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade mongodb to version 7.0.29, 8.0.18, 8.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion while evaluating expressions that generate deeply nested documents in recursive functions. An attacker can cause the server to run out of stack memory and crash by submitting specially crafted expressions that result in excessive nesting.

CVSS Base Scores

version 4.0
version 3.1