MongoDB NoSQL Database
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in any MongoDB product.
RSS Feeds for MongoDB security vulnerabilities
Create a CVE RSS feed including security vulnerabilities found in MongoDB products with stack.watch. Just hit watch, then grab your custom RSS feed url.
Products by MongoDB Sorted by Most Security Vulnerabilities since 2018
Known Exploited MongoDB Vulnerabilities
The following MongoDB vulnerabilities have been marked by CISA as Known to be Exploited by threat actors.
| Title | Description | Added |
|---|---|---|
| MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency Vulnerability |
MongoDB Server contains an improper handling of length parameter inconsistency vulnerability in Zlib compressed protocol headers. This vulnerability may allow a read of uninitialized heap memory by an unauthenticated client. CVE-2025-14847 Exploit Probability: 62.8% |
December 29, 2025 |
| MongoDB mongo-express Remote Code Execution Vulnerability |
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method. CVE-2019-10758 Exploit Probability: 94.4% |
December 10, 2021 |
The vulnerability CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability is in the top 1% of the currently known exploitable vulnerabilities. The vulnerability CVE-2025-14847: MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency Vulnerability is in the top 5% of the currently known exploitable vulnerabilities.
By the Year
In 2026 there have been 48 vulnerabilities in MongoDB with an average score of 6.4 out of ten. Last year, in 2025 MongoDB had 23 security vulnerabilities published. That is, 25 more vulnerabilities have already been reported in 2026 as compared to last year. Last year, the average CVE base score was greater by 0.06
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 48 | 6.39 |
| 2025 | 23 | 6.45 |
| 2024 | 17 | 6.72 |
| 2023 | 6 | 7.03 |
| 2022 | 4 | 6.65 |
| 2021 | 14 | 5.71 |
| 2020 | 20 | 6.42 |
| 2019 | 3 | 6.87 |
| 2018 | 2 | 8.10 |
It may take a day or so for new MongoDB vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent MongoDB Security Vulnerabilities
| CVE | Date | Vulnerability | Products |
|---|---|---|---|
| CVE-2026-11933 | Jun 12, 2026 |
MongoDB JavaScript Engine UAF via BSON-to-ArrayA use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed. This may result in disclosure of information from the mongod process memory or a denial of service through a server crash. |
|
| CVE-2026-9740 | Jun 09, 2026 |
MongoDB BSON Validator Recursion Crash (CVE20269740)A vulnerability in MongoDB Server's BSON validation logic allows an unauthenticated user to crash the mongod process by sending a specially crafted message. The BSON validator's handling of certain nested binary data structures permits uncontrolled mutual recursion between validation functions, where each re-entry resets internal depth tracking. |
|
| CVE-2026-9735 | Jun 09, 2026 |
MongoDB Server Exposes Auth Credentials in Logs During SASL AuthMongoDB server may log authentication parameters, including credentials, to the server log during SASL authentication. When connection health metric logging is enabled, the full authentication parameters are written to the log without redaction. |
|
| CVE-2026-9754 | Jun 09, 2026 |
MongoDB filemd5 LE: Authenticated Read Role Stack Memory LeakAn authenticated user with the read role may read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command |
|
| CVE-2026-9753 | Jun 09, 2026 |
MongoDB $_internalApplyOplogUpdate OOBB via malformed oplog diffThe $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed binary diff to return memory out-of-bounds or crash the server. $_internalApplyOplogUpdate can be executed by any authenticated user with access to the aggregate command. |
|
| CVE-2026-9752 | Jun 09, 2026 |
MongoDB 2dsphere Crash via GeometryCollection NPE in GeoJSONAn authorized user could trigger a server crash by running a query with a 2dsphere index on a field that stores a GeoJSON GeometryCollection containing a Polygon with a strict-winding CRS. Strict-winding polygons are intentionally unsupported for indexing, but the guard that rejects them does not inspect members of a GeometryCollection, allowing the unsafe path to be reached which ends with an ensuing null-pointer dereference. |
|
| CVE-2026-9751 | Jun 09, 2026 |
Plain Text Password Logging via ldapQueryPassword in MongoDBThe ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text. |
|
| CVE-2026-9750 | Jun 09, 2026 |
MongoDB Internal Metadata Injection Crash VulnerabilityAn authenticated user can cause a MongoDB server to crash or return incorrect results by creating documents that interfere with internal metadata processing during query execution. This stems from insufficient separation between user-controlled document fields and internal metadata in certain execution paths. |
|
| CVE-2026-9749 | Jun 09, 2026 |
MongoDB $exchange Stage Buffer Update Failure Enables DoSThis issue can occur when running an aggregation pipeline that uses the internal $exchange stage configured with key-range partitioning and order-preserving delivery. If a single key range produces enough documents to fill its exchange buffer (that is, many results are routed to the same consumer), the server reaches the code path where a full per-consumer buffer is detected but the internal "high watermark" for that key range is not updated as intended. |
|
| CVE-2026-9748 | Jun 09, 2026 |
MongoDB $facet Crash via PauseExecution misuse in aggregation pipelineThe $_internalConvertBucketIndexStats stage used PauseExecution as a way to signal "skip this document" when an index stats conversion failed. But PauseExecution is not a general purpose skip mechanism, but rather a TeeBuffer-internal signal used solely by $facet to coordinate its sub-pipelines. When this stage is placed before $facet in a pipeline, TeeBuffer receives the unexpected PauseExecution from upstream and hits a hard invariant assertion, crashing mongod. |
|
| CVE-2026-9747 | Jun 09, 2026 |
MongoDB Crash via fromRouter:true and userRoles Aggregation BugAdding fromRouter:true and runtimeConstants.userRoles could cause aggregations to crash mongodb server. |
|
| CVE-2026-9746 | Jun 09, 2026 |
MongoDB Crash via $_requestReshardingResumeToken (Change Streams)When using $changestreams and $_requestReshardingResumeToken with the exchange option the server hits an invariant which causes the server to crash. There are no special privileges needed. The user must be logged in to issue the statement. |
|
| CVE-2026-9743 | Jun 09, 2026 |
MongoDB 8.0 Aggregation Null _subPipeline Causing DoSIn MongoDB Server 8.0, an aggregation stage can leave its _subPipeline field null during processing of certain pipelines. If a getMore is subsequently issued on the same cursor, the server may dereference this null sub-pipeline when reattaching to the operation context, accessing an invalid address and crashing the process. This issue allows an authenticated user who can run aggregation pipelines to cause a denial of service by issuing a specially crafted aggregation followed by getMore on affected versions. |
|
| CVE-2026-9742 | Jun 09, 2026 |
MongoDB OIDC Pre-Auth DoS via 'mechanism' paramWhen OIDC authentication is enabled in configuration, clients may set specific values in the "mechanism" parameter of the "authenticate" command that lead to server crash. The authenticate command is accessible to unauthenticated clients, leading to pre-auth denial-of-service in affected product configurations. |
|
| CVE-2026-9741 | Jun 09, 2026 |
MongoDB QE $vectorSearch Stage Plaintext LeakA bug in query analysis processing of the $vectorSearch aggregation stage for Queryable Encryption (QE) or Client-Side Field Level Encryption (CSFLE) results in literal values for encrypted fields within the $vectorSearch stage filter expressions to be sent to the server as plaintext instead of ciphertext. |
|
| CVE-2026-9101 | May 20, 2026 |
MongoDB Compass: CSV import prototype pollution leads to 1click execPrototype pollution in csv parsing logic during import can lead to untrusted file paths (but not arguments) entering shell.openExternal after specific user behavior leading to "1-click" command execution. |
|
| CVE-2026-9100 | May 20, 2026 |
MongoDB C Driver GridFS API divisionzero via malformed metadataThe MongoDB C Driver's legacy GridFS API accepts malformed file metadata from the database without adequate validation. Crafted documents in a GridFS collection may cause any application that reads those files via the legacy API to either crash (via a division-by-zero) or silently leak process memory contents (via an out-of-bounds read). |
|
| CVE-2026-8843 | May 18, 2026 |
MongoDB 7.0 (pre-7.0.32) | 2dsphere_bucket Index Crash on Non-TS BucketsCreating a "2dsphere_bucket" index on a non-timeseries bucket collection will succeed, but any subsequent attempt to insert a document which triggers updating that index will crash the server. A similar issue occurs when creating "queryable_encrypted_range" indices. This issue affects MongoDB Server v7.0 versions prior to 7.0.32, v8.0 versions prior to 8.0.21 and v8.2 versions prior to 8.2.6 |
|
| CVE-2026-6811 | May 14, 2026 |
MongoDB PHP Driver Stack Exhaustion from Deeply Nested BSONStack exhaustion vulnerability in the MongoDB PHP driver can cause application crashes when processing deeply nested BSON documents in unusual circumstances when the source of these BSON documents is not MongoDB Server. |
|
| CVE-2026-8202 | May 13, 2026 |
DoS via $trim/$ltrim/$rtrim in MongoDB 7.0-8.3 (pre 7.0.34, 8.0.23, 8.2.9, 8.3.2)Using a densely populated chars mask and a large input string in the MongoDB aggregation operators $trim, $ltrim, and $rtrim, an authenticated user with aggregation permissions can pin CPU utilization at 100% for an extended period of time. This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8336 | May 13, 2026 |
MongoDB Server <7.0.34/8.0.23/8.2.9/8.3.2: Auth DoS via _internalJsEmitAfter invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce commands map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapreduce reduce stage, etc.) is used also in a specific way, resulting in a post-authentication denial-of-service. This issue impacts MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8201 | May 13, 2026 |
Use-After-Free in MongoDB mongocryptd FLE query (v7.0<7.0.34/8.0<8.0.23)A use-after-free vulnerability exists in MongoDB's Field-Level Encryption (FLE) query analysis component, affecting client-side uses of mongocryptd and crypt_shared. Triggering this vulnerability requires control over the structure of a client's FLE-related query. This issue impacts MongoDB Servers mongocryptd component v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8200 | May 13, 2026 |
MongoDB Server 7.0 log message data leak via schema validation prior to 7.0.34When schema validation is enabled on a collection and an update or insert would violate the collection's schema, the local server log message generated may not have all user data redacted. This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8199 | May 13, 2026 |
MongoDB Server OOM via Bitwise Expr AST (7.0.33,8.0.22,8.2.8,8.3.1)An authenticated user can cause excess memory usage via bitwise match expression AST processing of $bitsAllSet, $bitsAnySet, $bitsAllClear, and $bitsAnyClear. This contributes to memory pressure and may lead to availability loss by OOM. This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8053 | May 12, 2026 |
MongoDB Server <=8.3.2 OOB EDR via TimeSeries Bucket CatalogAn issue in MongoDB Server's time-series collection implementation allows an authenticated user with database write privileges to trigger an out-of-bounds memory write in the mongod process. The issue results from an inconsistency in the internal field-name-to-index mapping within the time-series bucket catalog. Under certain conditions this can result in arbitrary code execution. This issue impacts MongoDB Server v5.0 versions prior to 5.0.33, v6.0 versions prior to 6.0.28, v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2. |
|
| CVE-2026-8431 | May 12, 2026 |
Arbitrary Cmd Exec via Webhook FreeMarker in MongoDB Ops Manager 7.x & 8.0.22-An administrative user with access to configure webhooks can execute arbitrary commands by configuring and then triggering webhooks containing specific FreeMarker template syntax. This issue affects all MongoDB Ops Manager 7.0 versions and MongoDB Ops Manager versions 8.0.22 and prior. |
|
| CVE-2026-8063 | May 07, 2026 |
Atlas Search $rankFusion/$scoreFusion Null Ptr Crash (MongoDB 8.2<8.2.7)An authenticated user can crash mongod when running $rankFusion or $scoreFusion with an empty pipeline on a view. When resolving a view, the server inspects the aggregation pipeline to determine whether it begins with an Atlas Search stage. For $rankFusion and $scoreFusion, this inspection reads the first element on each stages input pipeline array without first verifying that the array is non-empty. Supplying an empty pipeline causes a null pointer dereference and crashes the server. This issue affects MongoDB Server 8.2 versions prior to 8.2.7. |
|
| CVE-2026-6691 | May 06, 2026 |
MongoDB C Driver GSSAPI Username Canonicalization Heap OverflowThe MongoDB C Driver's Cyrus SASL integration performs unsafe string copying during username canonicalization, enabling a heap buffer overflow before any authentication or network traffic. This may be triggered by passing untrusted input in the username of a MongoDB URI with authMechanism=GSSAPI. |
|
| CVE-2026-6915 | Apr 29, 2026 |
MongoDB Auth Flaw: Auth'd User Can Alter Another User's Auth DataAn authorization flaw in the user management command could allow an authenticated user to make limited changes to authentication-related data associated with another user account. This could affect how authentication is performed for the impacted account. |
|
| CVE-2026-6914 | Apr 29, 2026 |
MongoDB Server v7-8.2 DoS via MD5 on Malformed BSONComputing the MD5 checksum of a malformed BSON object under specific conditions may cause loss of availability in MongoDB server. This issue affects all MongoDB Server v8.2 versions, all MongoDB Server v8.1 versions, MongoDB Server v8.0 versions prior to 8.0.21, MongoDB Server v7.0 versions prior to 7.0.32 |
|
| CVE-2026-6231 | Apr 13, 2026 |
MongoDB C Driver <1.30.5, 2.0.x: bson_validate Skips Validation BypassThe bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1 |
|
| CVE-2026-5170 | Mar 30, 2026 |
MongoDB Server <=8.2.2 DDoS: mongod Crash during Replica Set PromotionA user with access to the cluster with a limited set of privilege actions can trigger a crash of a mongod process during the limited and unpredictable window when the cluster is being promoted from a replica set to a sharded cluster. This may cause a denial of service by taking down the primary of the replica set. This issue affects MongoDB Server v8.2 versions prior to 8.2.2, MongoDB Server v8.0 versions between 8.0.18, MongoDB Server v7.0 versions between 7.0.31. |
|
| CVE-2026-4359 | Mar 17, 2026 |
MongoDB C Driver Crash via Malformed HTTP Response (CVE-2026-4359)A compromised third party cloud server or man-in-the-middle attacker could send a malformed HTTP response and cause a crash in applications using the MongoDB C driver. |
|
| CVE-2026-4358 | Mar 17, 2026 |
MongoDB SBE: $lookup Auth Query Can Trigger Double-Free/UAFA specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk. |
|
| CVE-2026-4148 | Mar 17, 2026 |
UAF in MongoDB $lookup Aggregation PipelineA use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline. |
|
| CVE-2026-4147 | Mar 17, 2026 |
MongoDB: FileMD5 Command Allows Authenticated Read of Uninitialized Stack MemoryAn authenticated user with the read role may read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command. |
|
| CVE-2026-2303 | Feb 10, 2026 |
Heap OOB Read in mongo-go-driver GSSAPI CGo BindingsThe mongo-go-driver repository contains CGo bindings for GSSAPI (Kerberos) authentication on Linux and macOS. The C wrapper implementation contains a heap out-of-bounds read vulnerability due to incorrect assumptions about string termination in the GSSAPI standard. Since GSSAPI buffers are not guaranteed to be null-terminated or have extra padding, this results in reading one byte past the allocated heap buffer. |
|
| CVE-2026-2302 | Feb 10, 2026 |
Mongoid::Criteria.from_hash allows ARB Ruby code exec via crafted HashUnder specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code. |
|
| CVE-2026-25613 | Feb 10, 2026 |
MongoDB Crash via Invalid Compound Wildcard IndexAn authorized user may disable the MongoDB server by issuing a query against a collection that contains an invalid compound wildcard index. |
|
| CVE-2026-1849 | Feb 10, 2026 |
MongoDB Server OOM via deep nested expression evaluationMongoDB Server may experience an out-of-memory failure while evaluating expressions that produce deeply nested documents. The issue arises in recursive functions because the server does not periodically check the depth of the expression. |
|
| CVE-2026-1850 | Feb 10, 2026 |
MongoDB Query Planner OOM via Complex QueriesComplex queries can cause excessive memory usage in MongoDB Query Planner resulting in an Out-Of-Memory Crash. |
|
| CVE-2026-25609 | Feb 10, 2026 |
Profile cmd validation flaw enables readonly misclassification (CVE202625609)Incorrect validation of the profile command may result in the determination that a request altering the 'filter' is read-only. |
|
| CVE-2026-25610 | Feb 10, 2026 |
MongoDB Server Crash via $geoNear Pipeline Index HintsAn authorized user may trigger a server crash by running a $geoNear pipeline with certain invalid index hints. |
|
| CVE-2026-1848 | Feb 10, 2026 |
MongoDB: proxy_protocol header miscount leads to server crashConnections received from the proxy port may not count towards total accepted connections, resulting in server crashes if the total number of connections exceeds available resources. This only applies to connections accepted from the proxy port, pending the proxy protocol header. |
|
| CVE-2026-1847 | Feb 10, 2026 |
MongoDB Replica Set Oplog Fetch Failure Causing CrashInserting certain large documents into a replica set could lead to replica set secondaries not being able to fetch the oplog from the primary. This could stall replication inside the replica set leading to server crash. |
|
| CVE-2026-25612 | Feb 10, 2026 |
MongoDB Server Lock Collision Unavailability VulnerabilityThe internal locking mechanism of the MongoDB server uses an internal encoding of the resources in order to choose what lock to take. Collections may inadvertently collide with one another in this representation causing unavailability between them due to conflicting locks. |
|
| CVE-2026-25611 | Feb 10, 2026 |
MongoDB Server Memory Exhaustion via Unauthenticated MessagesA series of specifically crafted, unauthenticated messages can exhaust available memory and crash a MongoDB server. |
|
| CVE-2025-14911 | Jan 27, 2026 |
MongoDB GridFS chunkSize OOB buffer overflowUser-controlled chunkSize metadata from MongoDB lacks appropriate validation allowing malformed GridFS metadata to overflow the bounding container. |
|
| CVE-2025-14847 | Dec 19, 2025 |
MongoDB Server Uninit Heap Read via Zlib Header Len Mismatch <4.2.0Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthenticated client. This issue affects all MongoDB Server v7.0 prior to 7.0.28 versions, MongoDB Server v8.0 versions prior to 8.0.17, MongoDB Server v8.2 versions prior to 8.2.3, MongoDB Server v6.0 versions prior to 6.0.27, MongoDB Server v5.0 versions prior to 5.0.32, MongoDB Server v4.4 versions prior to 4.4.30, MongoDB Server v4.2 versions greater than or equal to 4.2.0, MongoDB Server v4.0 versions greater than or equal to 4.0.0, and MongoDB Server v3.6 versions greater than or equal to 3.6.0. |
|
| CVE-2025-14345 | Dec 09, 2025 |
MongoDB Server 7.0/8.0/8.2 Before x.x: Post-Auth Tx Commit FlawA post-authentication flaw in the network two-phase commit protocol used for cross-shard transactions in MongoDB Server may lead to logical data inconsistencies under specific conditions which are not predictable and exist for a very short period of time. This error can cause the transaction coordination logic to misinterpret the transaction as committed, resulting in inconsistent state on those shards. This may lead to low integrity and availability impact. This issue impacts MongoDB Server v8.0 versions prior to 8.0.16, MongoDB Server v7.0 versions prior to 7.0.26 and MongoDB server v8.2 versions prior to 8.2.2. |
|