CVE-2026-125119

GHSA-gg4r-jv3p-qx3c · published 9 Nov 2026 · updated 12 Nov 2026

Mongoose: Connection-level sanitizeFilter not applied

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in mongoose 6.13.12, mongoose 7.8.13, mongoose 8.24.7 and 1 more.

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.prototype._castConditions() and query casting check other option locations and do not read that configuration. An application that enables sanitizeFilter through mongoose.connect() or createConnection() and passes an attacker-controlled object into a query filter therefore receives a connection that reports the defense as enabled while query selector objects remain unsanitized. A crafted password value using a query operator can match an account record without the expected literal password, while global configuration through mongoose.set('sanitizeFilter') and per-query Model.find().sanitizeFilter() remain unaffected. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Automattic>=6.0.0 <6.13.12, >=7.0.0 <7.8.13, >=8.0.0 <8.24.7, >=9.0.0 <9.11.4
npm: mongoose>=6.0.0 <6.13.12, >=7.0.0 <7.8.13, >=8.0.0 <8.24.7, >=9.0.0 <9.11.46.13.12, 7.8.13, 8.24.7, 9.11.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in mongoose (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-125119 severity on Zeptric[![CVE-2026-125119](https://zeptric.io/badge/cve/CVE-2026-125119.svg)](https://zeptric.io/cve/CVE-2026-125119)