Are you affected by CVE-2026-126835?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)CVE-2026-126835
mongodb: MongoDB Node.js driver: Information disclosure via improper permitted-host validation during OIDC authentication
Overview
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.
Source: OX vulnerability database
Am I affected?
Answer a few questions about your setup. Everything stays in your browser.
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness: CWE-923
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | mongodb | >=6.7.0, <7.9.0 | 7.9.0 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-126835
- github.com https://github.com/mongodb/node-mongodb-native/releases/tag/v7.9.0
- github.com https://github.com/mongodb/node-mongodb-native/security/advisories/GHSA-c5cf-gf4q-92vj
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126835
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-126835
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.