CVE-2026-126835

published 12 Nov 2026 · updated 13 Nov 2026

[Node.js Driver] OIDC ENVIRONMENT confusion bypasses ALLOWED_HOSTS and leaks human-callback bearer tokens

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Node.js Driver 7.9.0.

The MongoDB Node.js driver does not consistently enforce its permitted-host restriction during OIDC authentication. A bearer token produced by the embedding application's own login callback may therefore be transmitted to a host outside the configured set of permitted hosts, which may result in unintended disclosure of that credential. No database account is required; the party supplying the connection configuration needs only to influence the settings the application passes to the driver.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBNode.js Driver>=>= 6.7.0 <7.9.07.9.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126835 severity on Zeptric[![CVE-2026-126835](https://zeptric.io/badge/cve/CVE-2026-126835.svg)](https://zeptric.io/cve/CVE-2026-126835)