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

- Severity: Medium 5.9 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-11-12T17:06:05.064Z
- Modified: 2026-11-13T17:17:26.487Z
- Weaknesses: CWE-923
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- MongoDB Node.js Driver: from >= 6.7.0 before 7.9.0

## Every score

- mongodb: CVSS:4.0 5.9 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-126835](https://www.cve.org/CVERecord?id=CVE-2026-126835), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-126835](https://nvd.nist.gov/vuln/detail/CVE-2026-126835), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126835 · Whole record: https://cve.day/CVE-2026-126835.json · Rebuilt by cve.day 2026-11-25T22:59:50.541Z
