Incorrect Authorization Affecting mongodb package, versions [6.0.0, 6.0.22)[7.0.0, 7.0.19)[8.0.0, 8.0.7)[8.1.0-alpha0, 8.1.0-rc1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (27th 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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MONGODB-14619267
  • published29 Dec 2025
  • disclosed7 Jul 2025
  • creditUnknown

Introduced: 7 Jul 2025

CVE-2025-6713  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade mongodb to version 6.0.22, 7.0.19, 8.0.7, 8.1.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization due to incorrect handling of the $mergeCursors stage in aggregation pipelines. An attacker can craft a malicious aggregation pipeline that bypasses authorization checks, allowing access to data without the required permissions.

CVSS Base Scores

version 4.0
version 3.1