Intel

AIKIDO-2026-994212

mongodb/mongodb is vulnerable to Improper Neutralization of Special Elements in Data Query Logic

Improper Neutralization of Special Elements in Data Query LogicCVE-2026-81525 Published 2 days ago

81

High Risk

This Affects:

PHPmongodb/mongodb
0.0.1 - 1.21.3
Fixed in 1.21.4
2.0.0 - 2.4.0
Fixed in 2.4.1
Are you affected? Scan for Free

TL;DR

The library builds MongoDB namespace strings by concatenating caller-supplied database and collection names without validating them. Names containing a dot or a NUL byte are interpreted by the server as a different namespace, so supplying untrusted values can redirect an operation to another database or collection. Before the fix this allowed reads and writes against unintended, cross-tenant data sources. The fix rejects dots and NUL bytes in database and collection names and routes affected operations through a centralized namespace-construction helper.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass untrusted values as database or collection names.

Background info

mongodb/mongodb is vulnerable to Improper Neutralization of Special Elements in Data Query Logic in versions 0.0.1 - 1.21.3 and 2.0.0 - 2.4.0.

How to fix this

Upgrade the mongodb/mongodb library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform