The CVSS 6.5 score for this MongoDB $jsonSchema vulnerability masks a critical reality: any authenticated user can exhaust your entire MongoDB instance's memory with surprisingly small queries, and there's likely nothing in place to stop them.
The core issue is memory amplification in the JSON Pointer parser. The $jsonSchema operator—exposed as a find() filter—allows clients to invoke server-side schema validation on every query. When MongoDB processes a $jsonSchema filter, the underlying JSON Pointer parser allocates memory disproportionate to the input size. A modest query can trigger allocation orders of magnitude larger than the input itself. This isn't theoretical: if a 1KB $jsonSchema filter causes 100MB of memory allocation, you don't need a massive query to trigger catastrophic failure—one query from one user can kill the entire mongod process.
What makes this exploitable is the concurrency multiplier. An attacker doesn't need one massive query. They need only sustain a threshold of concurrent queries over time. Each query amplifies memory consumption, and because the parser likely runs early in query processing—before connection-level memory limits or rate limiting take effect—there's no hook to stop it. The attack looks like legitimate traffic in your logs until your heap is exhausted and OOM kills the process.
The blast radius is total. When mongod dies, every client connected to that instance loses service—reads, writes, index builds, replica sync, all of it. In containerized environments, this can trigger cascading failures beyond the database itself.
Defenders should verify three things immediately. First, check whether your application code or any middleware invokes $jsonSchema in find(), aggregate, or update operations—you may be using this operator without realizing it. Second, audit your query profiling logs for $jsonSchema usage patterns to establish a baseline. Third, contact MongoDB for the specific amplification ratio—without knowing how much memory a given input allocates, you cannot calculate safe bounds or effective query complexity limits.
The remediation path is constrained: MongoDB cannot simply disable $jsonSchema without breaking standards compliance for enterprises that depend on it. This means the hardening will require architectural changes to parser resource accounting, and the timeline may extend beyond typical patch cycles. Treat this as a high-severity exposure until proven otherwise.