CVE-2026-126835
Description
A flaw was found in the MongoDB Node.js driver. This flaw allows information disclosure because the driver fails to consistently enforce permitted-host restrictions during OpenID Connect (OIDC) authentication. An attacker who can influence the connection settings provided to the driver can cause the application to transmit authentication bearer tokens to an unauthorized host.
Statement
This vulnerability is evaluated as having a Moderate impact because, while it could lead to the unintended leakage of OIDC bearer tokens to unauthorized remote systems, successful exploitation requires an adversary to manipulate connection properties handled by the calling application. In standard Red Hat application environments, database connection URIs and driver parameters are centrally managed in secure configuration files rather than exposed to untrusted user input. Furthermore, the flaw specifically targets deployments utilizing OIDC authentication callbacks with host restriction lists, limiting exposure across general MongoDB client usage.
Mitigation
Restrict outbound network traffic to authorized database targets and ensure connection parameters cannot be modified by untrusted input.
Apply network egress controls (such as firewall rules or container network policies) to ensure application workloads can only establish outbound connections to verified MongoDB server endpoints and trusted identity providers. This prevents outbound token transmission even if an unauthorized destination is specified.
In addition, statically define database connection URIs and driver options within application configuration files, preventing external users from supplying or modifying target hosts. If feasible, configure applications to use alternative authentication schemes, such as SCRAM or x.509 certificates, which do not transmit bearer tokens.
Caveat: Network egress filtering requires adjustments whenever database server infrastructure changes. Modifying authentication methods or connection configurations requires restarting or redeploying the application service.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.5 | N/A | 6.5 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | Required | N/A | Required |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | None | N/A | None |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Files or Directories; Read Memory; Read Application Data
Sensitive data may be exposed to attackers.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.