Skip to content

Node.js Driver

Attacker able to redirect a client's database traffic to a host they control via special characters in an SRV target, bypassing the SRV parent-domain guard

CVE-2026-126837Published 12 Nov 2026, 17:00 UTC

Real-world risk

3.1/ 10Low

Routine

If the vulnerable configuration applies to you: 6.8

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from mongodb)

A validation flaw in the DNS SRV host discovery of the MongoDB Node.js driver may cause the driver to connect to a host outside the expected domain. For a mongodb+srv:// connection string, the driver checks each host name in the DNS SRV response against the domain of the connection string. The driver then builds the connection address from the original name, in which certain characters end the host name early. An unauthenticated party who can forge or change the DNS SRV response may redirect the connection to a host of their choice. TLS does not prevent this, because the driver verifies the server certificate against the redirected host name. This may result in unintended disclosure of application data and authentication credentials, and in altered query results. Applications that use mongodb:// connection strings are not affected.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Node.js DriverNiche>= 3.3.3, < 7.8.07.8.0

What to do

Update to a fixed version: 7.8.0.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 16), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
  4. Rounded to one decimal between 0.1 and 103.1

How the score works

Exploitation and evidence timeline

  1. 12 Nov 2026 Published
  2. 3 Dec 2026 Risk 3.1 (cvss fallback)

Weakness

CWE-180

References

Get alerts for Node.js Driver

Free email or text alerts when a vulnerability in Node.js Driver reaches risk 8 or higher. Nothing else.