CVE-2026-126835
JSON

5.9medium

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

Severity
5.9medium CVSS:4.0 by mongodb
Exploit likelihood
0.35% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb

Description

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

Product or packageVersionsReported by
MongoDB Node.js Driverfrom >= 6.7.0 before 7.9.0CVE List

All scores

mongodb5.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
mongodb6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Classification

CWE-923

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-126835 changed 2026-11-13CVE Terms of Use
NVDCVE-2026-126835 changed 2026-11-13Public domain