CVE-2026-126835
The MongoDB Node.js driver does not consistently enforce its permitted-host restriction during OIDC authentication.
Impact
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.
An attacker can exploit this over the network, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: high risk of data being read.
Affected products · MongoDB
| Product | Affected versions |
|---|---|
| Node.js Driver | from >= 6.7.0 before 7.9.0 from 6.7.0 before 7.9.0 |