Back to CVE records
Medium 6.5Published Oct 28, 2026

CVE-2026-118581NoSQL injection via mismatched BSON size prefix in raw document splice to the wire protocol

Updated under an hour ago ()

Does this affect you?

It affects MongoDB Java Driver. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

A BSON encoding component of the MongoDB Java Driver does not verify that an externally supplied raw document's self-declared length agrees with the extent of the byte range it is given before that range is copied into an outgoing database command. An application that wraps untrusted raw bytes in such a document and uses it as part of a command can therefore emit a structurally inconsistent message, causing the database to interpret attacker-supplied trailing content as additional fields of the surrounding command. No authentication to the driver or database is required beyond the ability to influence those bytes through the victim application, and no user interaction is needed. The result is unintended modification of the command actually executed, which can alter the data read or written under the application's credentials.

Free: a daily email for up to 3 products and the weekly digest. No card, no password. By continuing you agree to the Terms and Privacy Policy.

CVSS
6.5 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-943
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
mongodb
NVD analysis
Awaiting Analysis
Record last updated
Oct 28, 2026
First seen by InfoSec Signals
Oct 28, 2026

Affected products

Affected products
MongoDB Java Driver
mongodb:java_driver (from the name)
from 5.8.0 before 5.14.0
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Essential cookies only, unless you allow a Google ads cookie. See our .