[Node.js Driver] OIDC ENVIRONMENT confusion bypasses ALLOWED_HOSTS and leaks human-callback bearer tokens
- State
- Published
- Severity
- 5.9 Medium
- Published
- Nov 12, 2026
- Updated
- Nov 13, 2026
- Reserved
- Nov 11, 2026
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.
| Product | Versions |
|---|---|
| Node.js Driver MongoDB | >= 6.7.0 to before 7.9.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.9 Medium | mongodb | |
| 3.1 | 6.5 Medium | mongodb |
Weaknesses
- CWE-923 Improper Restriction of Communication Channel to Intended Endpoints
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.