CVE-2026-18712: MongoDB Improper Authorization Vulnerability in Queryable Encryption Maintenance Operations

mongodb Updated 28 Sep 2026

Summary

28/09/2026
Yes i
High
Not published

CVE-2026-18712: An issue in MongoDB Server's Queryable Encryption maintenance operations could allow an authenticated user with privileges on one encrypted collection to cause unauthorized modification or destruction of data belonging t... Affects mongodb across 3 version ranges.

>= 7.0.0, < 7.0.40 >= 8.0.0, < 8.0.29 >= 8.2.0, < 8.3.8

Fixed in 7.0.40, 8.0.29 or 8.3.8, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MongoDB is a widely used NoSQL database that allows for flexible data storage and retrieval. It supports various data models and is known for its scalability and performance. However, like any software, it can have vulnerabilities. The specific issue at hand involves improper authorization in its Queryable Encryption feature, which is designed to protect sensitive data. This vulnerability can lead to unauthorized modifications of data across different collections, posing a significant risk to data integrity and security.

Vulnerability Detail

The vulnerability arises from insufficient validation of internal metadata references within MongoDB's Queryable Encryption maintenance operations. An authenticated user with privileges on one encrypted collection could exploit this flaw to modify or destroy data in another collection. This could lead to data loss, corruption, or unauthorized access to sensitive information, severely impacting the integrity of the database.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 7.0.0, < 7.0.40 7.0.40
  • >= 8.0.0, < 8.0.29 8.0.29
  • >= 8.2.0, < 8.3.8 8.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, consider restricting access to the Queryable Encryption feature until the patch is applied. This can be done by modifying user roles and permissions to limit access to sensitive operations.

Conclusion

CVE-2026-18712 is a significant vulnerability in MongoDB that can lead to unauthorized data modifications across collections. It is crucial to update to the patched versions to ensure the security and integrity of your database. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for mongodb →

Share this vulnerability

FAQ

CVE-2026-18712 is a vulnerability in MongoDB that allows unauthorized modification of data across collections due to improper authorization in Queryable Encryption maintenance operations.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities. By uploading your manifest file like package-lock.json, you can check if your application is affected by this vulnerability.

The risks include unauthorized data modification, data loss, and potential exposure of sensitive information, which can severely compromise data integrity and security.

To update MongoDB, use your package manager to install the patched version (7.0.40, 8.0.29, or 8.3.8). Follow the update commands provided in the 'how_to_fix' section.

Yes, you can temporarily restrict access to the Queryable Encryption feature by modifying user roles and permissions to limit access to sensitive operations.

Related vulnerabilities

Recent vulnerabilities recorded for mongodb.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 7.0.0, < 7.0.40 7.0.40
  • >= 8.0.0, < 8.0.29 8.0.29
  • >= 8.2.0, < 8.3.8 8.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback