MODERATE 6.5

CVE-2026-126835

[Node.js Driver] OIDC ENVIRONMENT confusion bypasses ALLOWED_HOSTS and leaks human-callback bearer tokens

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.webjars.npm » mongodbpreliminary
< 2503f33880e08622ff73809f3e5d6b4be831c423>= >= 6.7.0, < 7.9.0
2503f33880e08622ff73809f3e5d6b4be831c423, 7.9.0

Blast radius

0affected artifacts
0affected versions
0dependent artifacts (est.)
0dependent versions

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.