Improper Restriction of Communication Channel to Intended Endpoints Affecting mongodb package, versions >=6.7.0 <7.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (18th 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-JS-MONGODB-22566493
  • published16 Nov 2026
  • disclosed12 Nov 2026
  • creditUnknown

Introduced: 12 Nov 2026

NewCVE-2026-126835  (opens in a new tab)
CWE-923  (opens in a new tab)

How to fix?

Upgrade mongodb to version 7.9.0 or higher.

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Improper Restriction of Communication Channel to Intended Endpoints via OIDC ENVIRONMENT and callback confusion in MongoCredentials validation, where specifying both an ENVIRONMENT value and an OIDC_CALLBACK or OIDC_HUMAN_CALLBACK bypasses the ALLOWED_HOSTS restriction. A bearer token produced by the application's own login callback can therefore be transmitted to a host outside the configured set of permitted hosts, resulting in unintended disclosure of that credential.

CVSS Base Scores

version 4.0
version 3.1