CVE-2026-13071 Server-Side JavaScript Aggregation Expression Memory Safety Issue Leading to Process Termination

High 7.1 Published Updated

An authenticated user can crash the MongoDB server by triggering a use-after-free vulnerability in server-side JavaScript aggregation expressions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-13071?

CVE-2026-13071 is a high-severity use after free vulnerability in Mongodb Mongodb, published on 22 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An authenticated user with read access can cause the mongod process to be terminated through certain aggregation expressions that execute server-side JavaScript. The issue involves improper memory handling during document processing.

Weakness: CWE-416

Which versions are affected by CVE-2026-13071?

1 open source package ship an affected version, including mongodb. It affects 1 product.

PackageAffectedFixed in
mongodb BitnamiFrom 7.0.07.0.39, 8.0.28, 8.2.12, 8.3.7

Products include Mongodb Mongodb.

How do I fix CVE-2026-13071?

Upgrade mongodb to a fixed version for your release line: 7.0.39, 8.0.28, 8.2.12 or 8.3.7.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-13071 being exploited?

There is no known exploitation of CVE-2026-13071 in the wild and no public exploit code.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2026-13071, GHSA-hw74-92vg-cf79, MINI-6fwp-q874-cw23, MINI-8v8p-f39w-68gc, MINI-mxj7-rv6x-6v57, MINI-qw4h-38m7-3w52 and 1 more.

Is CVE-2026-13071 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free