Read the docs

NUL character injection in MongoDB Node.js Driver SASL PLAIN login

Priority LOW 28CWE-158Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

The MongoDB Node.js Driver before 7.9.1 does not neutralize NUL characters in the user name and password it places into SASL PLAIN authentication messages (CWE-158). A party who can choose the login values an application passes to the driver can shift the field boundaries, so the receiving system reads a different login name and secret than the application supplied. Authenticating as another account still requires that account's password, and only deployments that use SASL PLAIN are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-26

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00272 12th percentileScored 2026-11-30
Fix Partial Node.js Driver (MongoDB): 7.9.1Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBNode.js Driverbefore 7.9.17.9.1Patch availableCNA
  • Node.js Driver VendorMongoDB Affected before 7.9.1 Fixed in 7.9.1 Patch available CNA

Remediation

Update the MongoDB Node.js Driver to version 7.9.1, which fixes the flaw. Red Hat rates this Low and lists OpenShift Serverless, Red Hat Developer Hub 2 and Red Hat Openshift Data Foundation 4 as affected with no plan available.

Written with Claude Haiku 5.5 from the sources below · 2026-11-26

  • Fix · CNA Node.js Driver (MongoDB) Fixed in 7.9.1

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Node.js Driver 7.9.1

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-95111 MongoDB Node.js Driver leaks connection string credentials in parse errorsPriority LOW 25

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift ServerlessAffectedNo fix yet: Fix deferred
Red Hat Developer Hub 2AffectedNo fix yet: Fix deferred
Red Hat Openshift Data Foundation 4AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-129929
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-19 Alias added: GHSA-hwj4-3vj7-g85r
  4. 2026-11-26 Affected versions changed · Red Hat
  5. 2026-11-26 CVSS score added · Red Hat

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources