<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k" -->

---
title: CVE-2026-129925 (mongo): MongoDB Ruby Driver does not...
description: The MongoDB Ruby Driver fails to neutralize NUL characters in user name and password values used to build SASL PLAIN authentication messages. A party who can...
canonical: https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password | daily.dev
og:description: The MongoDB Ruby Driver fails to neutralize NUL characters in user name and password values used to build SASL PLAIN authentication messages. A party who can...
og:url: https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k
og:image: https://api.daily.dev/og/posts/AmX9WYH1k.png
og:image:alt: CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 1 min read · 0 upvotes · 0 comments

## Summary

The MongoDB Ruby Driver fails to neutralize NUL characters in user name and password values used to build SASL PLAIN authentication messages. A party who can choose the login values passed to the driver can alter where the fields of that message begin and end, which may cause the receiving system to read a different login name and secret than the application supplied. Authenticating as a different account still requires that account's password. The issue is tracked as CVE-2026-129925 with a CVSS score of 3.7 (Low), affects only SASL PLAIN deployments, and is patched in version 2.26.2 and later.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubysec.com/advisories/CVE-2026-129925>

## Questions this post answers

### What is CVE-2026-129925 in the MongoDB Ruby driver and should I upgrade?

CVE-2026-129925 affects the MongoDB Ruby Driver before version 2.26.2, which fails to neutralize NUL characters in user name and password values used for SASL PLAIN authentication messages. An attacker controlling the login values can shift where message fields begin and end, causing the server to read a different account name and secret than supplied. It only affects SASL PLAIN deployments and has a CVSS score of 3.7 (Low). Upgrade to 2.26.2 or later.

_Teams tracking MongoDB driver advisories can follow patched versions and CVEs like this one on daily.dev._

### Does the MongoDB Ruby driver NUL character bug let an attacker log in as someone else without a password?

No, authenticating as a different account still requires that account's password even though NUL characters can shift how the SASL PLAIN message's login fields are parsed. The flaw lets a receiving system read a login name and secret that differ from what the application supplied, but it does not bypass the password requirement itself.

_Developers evaluating driver CVEs for real exploitability can track advisories like this via daily.dev._

## Similar posts on daily.dev

- [CVE-2026-129924 \(mongo\): MongoDB Ruby driver can include unmasked connection string content](https://daily.dev/posts/cve-2026-129924-mongo-mongodb-ruby-driver-can-include-unmasked-connection-string-content-c1ihjs4qu) · RUBYLAND · 0 upvotes · 0 comments
- [Security advisory: CVE-2026-9740 and CVE-2026-11933 in Percona Server for MongoDB](https://daily.dev/posts/security-advisory-cve-2026-9740-and-cve-2026-11933-in-percona-server-for-mongodb-ocjoajvq7) · Percona Blog · 0 upvotes · 0 comments
- [MongoBleed explained simply](https://daily.dev/posts/mongobleed-explained-simply-fyjdy2snj) · Lobsters · 2 upvotes · 0 comments
- [CVE-2026-126818 \(mongoid\): Improper Encryption of Inherited Model Fields Leads to Information Disclosure](https://daily.dev/posts/cve-2026-126818-mongoid-improper-encryption-of-inherited-model-fields-leads-to-information-disclo-gobbavjxk) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ruby](https://daily.dev/tags/ruby), [#mongodb](https://daily.dev/tags/mongodb), [#appsec](https://daily.dev/tags/appsec)

[View this post on daily.dev](https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password","url":"https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k"},"datePublished":"2026-11-21T16:22:23.530Z","dateModified":"2026-11-21T16:22:45.078Z","description":"The MongoDB Ruby Driver fails to neutralize NUL characters in user name and password values used to build SASL PLAIN authentication messages. A party who can...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,ruby,mongodb,appsec","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"CVE-2026-129925 (mongo): MongoDB Ruby Driver does not neutralize NUL characters in the user name and password"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cve-2026-129925-mongo-mongodb-ruby-driver-does-not-neutralize-nul-characters-in-the-user-name-and-amx9wyh1k#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-129925 in the MongoDB Ruby driver and should I upgrade?","acceptedAnswer":{"@type":"Answer","text":"CVE-2026-129925 affects the MongoDB Ruby Driver before version 2.26.2, which fails to neutralize NUL characters in user name and password values used for SASL PLAIN authentication messages. An attacker controlling the login values can shift where message fields begin and end, causing the server to read a different account name and secret than supplied. It only affects SASL PLAIN deployments and has a CVSS score of 3.7 (Low). Upgrade to 2.26.2 or later. Teams tracking MongoDB driver advisories can follow patched versions and CVEs like this one on daily.dev."}},{"@type":"Question","name":"Does the MongoDB Ruby driver NUL character bug let an attacker log in as someone else without a password?","acceptedAnswer":{"@type":"Answer","text":"No, authenticating as a different account still requires that account's password even though NUL characters can shift how the SASL PLAIN message's login fields are parsed. The flaw lets a receiving system read a login name and secret that differ from what the application supplied, but it does not bypass the password requirement itself. Developers evaluating driver CVEs for real exploitability can track advisories like this via daily.dev."}}]}
```

