{"id":"CVE-2026-126835","summary":"[Node.js Driver] OIDC ENVIRONMENT confusion bypasses ALLOWED_HOSTS and leaks human-callback bearer tokens","details":"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.","modified":"2026-11-15T02:30:18.282083618Z","published":"2026-11-12T17:06:05.064Z","database_specific":{"cwe_ids":["CWE-923"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126835.json","cna_assigner":"mongodb"},"references":[{"type":"WEB","url":"https://github.com/mongodb/node-mongodb-native/releases/tag/v7.9.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126835.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126835"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/node-mongodb-native","events":[{"introduced":"f56938f5d29d22434379d65a6946c122c4e8d9e9"},{"fixed":"2503f33880e08622ff73809f3e5d6b4be831c423"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"\u003e= 6.7.0"},{"fixed":"7.9.0"}]},{"original_tag":"v7.9.0","range":[{"fixed":"2503f33880e08622ff73809f3e5d6b4be831c423"}],"source":"REFERENCES_TAG"}]}}],"versions":["v7.8.0","v7.7.0","v7.6.0","v7.5.0","v7.4.0","v7.3.0","v7.2.0","v7.1.0","v7.0.0","v6.20.0","v6.19.0","v6.18.0","v6.17.0","v6.16.0","v6.15.0","v6.14.2","v6.14.1","v6.14.0","v6.13.1","v6.13.0","v6.12.0","v6.11.0","v6.10.0","v6.9.0","v6.8.0","v6.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126835.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}