# CVE-2026-126835: \[Node.js Driver\] OIDC ENVIRONMENT confusion bypasses ALLOWED\_HOSTS and leaks human-callback bearer tokens

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-13
- Record: https://cvemate.com/vulnerability/CVE-2026-126835 · JSON: https://cvemate.com/vulnerability/CVE-2026-126835/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.354%, percentile 31.184%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb node.js driver: ≥ \>= 6.7.0, \< 7.9.0

## References

- <https://github.com/mongodb/node-mongodb-native/releases/tag/v7.9.0>

---

Data as of 2026-12-05T04:25:09.041Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
