What’s Vulnerable › Vulnerabilities
CVE-2026-11933: Post-authentication use-after-free in server-side JavaScript BSON-to-array conversion
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-12 · updated 2026-06-22
- Weakness: CWE-787
Description
A 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.
Affected products
- MongoDB: from 4.4.0 before 4.4.31; from 5.0.0 before 5.0.34; from 6.0.0 before 6.0.29; from 7.0.0 before 7.0.37; from 8.0.0 before 8.0.26; from 8.2.0 before 8.2.11 — fixed in 4.4.31, 5.0.34, 6.0.29, 7.0.37, 8.0.26, 8.2.11
How to fix
Upgrade to a fixed version: MongoDB 4.4.31, 5.0.34, 6.0.29, 7.0.37. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-11933 or the next vulnerability affects your stack