Skip to main content

MongoDB Node.js Driver CVE-2026-129929

| EUVDEUVD-2026-130677 MEDIUM
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-11-19 mongodb GHSA-hwj4-3vj7-g85r
6.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control login values passed into driver
  2. Exploit
    Embed NUL characters in username/password
  3. Execution
    Shift SASL PLAIN field boundaries
  4. Impact
    Server parses attacker-altered credential fields

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
Exploitation Conditions

Exploitation is limited to deployments where the application authenticates to MongoDB using SASL PLAIN; all other authentication mechanisms are unaffected. It further requires that an attacker can choose the username and/or password values the application passes into the driver (such as a service that relays end-user-supplied credentials into MongoDB auth). Key limiting factors: the CVSS AC:H and AT:P indicate the attack depends on specific, attacker-uncontrolled conditions; the impact is bounded to integrity of the credential fields (VI:L), and the description explicitly states that authenticating as a different account still requires that account's password, preventing direct impersonation from this flaw alone. Authentication to the target is not required (PR:N per the supplied vector).

Impact

Signals point to a genuine but modest, conditional risk rather than an urgent widespread threat. The input CVSS 4.0 score is 6.3 (medium) with AV:N but AC:H and AT:P, meaning network-reachable yet requiring both high complexity and a present-but-attacker-uncontrolled condition; impact is limited to VI:L (low integrity) with no confidentiality or availability impact, consistent with CWE-158 (improper neutralization of a NUL character) corrupting SASL PLAIN message framing rather than yielding code execution. No EPSS score was provided, so exploitation probability cannot be quantified from the input. The vulnerability is not in CISA KEV and there is no public exploit identified at time of analysis - the single reference is a MongoDB Jira tracker (NODE-7828), an advisory/tracking link, not working exploit code. The vuln.today Decision label is 'this_month', which aligns with medium severity and no confirmed exploitation - not act_now or emergency. A key mitigating fact stated in the description bounds the impact: authenticating as a different account still requires that account's password, so this is a credential-field confusion / information-disclosure framing issue, not a direct account-takeover primitive. Net: a real issue to patch on a normal cycle for the narrow set of deployments using SASL PLAIN, not a high-CVSS-but-overhyped emergency.

Exploit ScenarioDerived

In an application (for example a multi-tenant service) that forwards user-chosen username and password values into the MongoDB Node.js Driver using SASL PLAIN authentication, an attacker supplies login values containing embedded NUL characters. Because the driver does not neutralize NUL in these fields, the bytes shift where the username and password boundaries fall in the SASL PLAIN message, causing the receiving system to read a login name and secret different from what the application intended. No public exploit code is identified; the high attack complexity (AC:H/AT:P) and the fact that impersonating another account still requires that account's password limit practical abuse to field-confusion/disclosure rather than takeover.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

NUL-character injection in the MongoDB Node.js Driver's SASL PLAIN authentication path lets a party who controls the username or password strings supplied to the driver shift the boundaries between the fields of the authentication message, so the receiving MongoDB server can read a login name and secret that differ from what the application intended. Only deployments that authenticate with SASL PLAIN are affected, and the flaw alone does not permit impersonation: signing in as a different account still requires that account's password, which bounds the impact to credential-field integrity. The assessed vector (AV:N/AC:H/AT:P/PR:N/UI:N with VI:L only) reflects that the attack needs specific, attacker-uncontrolled conditions - chiefly an application that relays externally chosen credentials into the driver - and no public exploit has been identified at time of analysis; the vendor tracks the issue as NODE-7828 with a this-month remediation priority.

RemediationAI

No fixed driver version is stated in the available data, so the primary action is to track MongoDB Jira NODE-7828 (https://jira.mongodb.org/browse/NODE-7828) and upgrade the mongodb Node.js driver to the release it designates as patched once published. Where SASL PLAIN is not a hard requirement, the most complete workaround is to stop using it - configure the connection to authenticate with SCRAM-SHA-256 (or another mechanism such as X.509) instead, at the cost of re-provisioning users and updating connection strings and any external credential store. Because the defect is triggered by NUL bytes in the values passed to the driver, applications that relay user-supplied credentials into MongoDB authentication should reject or strip NUL (0x00) characters from usernames and passwords at the application boundary before calling the driver; this is a narrow input-validation change whose trade-off is that any legacy credential legitimately containing a NUL byte would stop working, which is rare in practice. Architecturally, avoid passing end-user-controlled credential strings into driver authentication at all - authenticate the service with its own fixed credentials and authorize end users in application logic - since that removes the precondition the flaw depends on.

Affected VersionsENISA

Node.js Driver 0 <7.9.1

Affected Packages

euvd node_js_driver fix: 7.9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SASL PLAIN (RFC 4616) is a simple password authentication mechanism whose client response is a single string of three fields separated by NUL (0x00) bytes: authorization identity, authentication identity, and password. Because NUL is the field delimiter rather than escaped data, any NUL byte embedded in a username or password is interpreted by the server as the end of one field and the start of the next, letting the boundaries of the message move relative to the values the application originally supplied. The MongoDB Node.js Driver builds this message from caller-provided values without neutralizing NUL characters, which is exactly the CWE-158 (Improper Neutralization of Null Byte or NUL Character) class - an encoding/metacharacter handling defect rather than a memory-safety bug. The consequence is a parsing disagreement between the driver and the server about which bytes constitute the login name and which constitute the secret. Since the server still validates the password associated with whatever account name it parses, the practical effect is limited to integrity of the credential fields (VI:L) and does not by itself yield account takeover; the assessed AC:H and AT:P metrics encode that the outcome depends on deployment-specific conditions outside the attacker's control. The CPE entry cpe:2.3:a:mongodb:node.js_driver with wildcarded version components indicates the advisory does not pin a specific version range in the supplied data.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Network-reachable but attacker must control login values under specific conditions (AC:H), no privileges on the target (PR:N), and impact is limited to credential-field integrity (I:L) with no C or A impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 3.7 LOW

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 21:19 EUVD
CVE Published
Nov 19, 2026 - 19:16 cve.org
MEDIUM 6.3

DescriptionCVE.org

The MongoDB Node.js Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter where the fields of that message begin and end. This may result in a receiving system reading a login name and secret that differ from the values the application supplied. Authenticating as a different account still requires that account's password. Only deployments that use SASL PLAIN authentication are affected.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
High
official MongoDB driver, widely used across Node.js backend deployments
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy