Use-after-free in MongoDB Server - CVE-2026-8336
Published: August 18, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service.
The vulnerability exists due to use-after-free in $_internalJsEmit and mapreduce commands when invoking $_internalJsEmit or the mapreduce command's map function in a certain way and subsequently using the server-side JavaScript engine. A remote user can invoke these command paths in a crafted sequence to cause a denial of service.
The issue is triggered when server-side JavaScript features such as $where, $function, or the mapreduce reduce stage are later used in a specific way.