CVE-2026-125119 json
Mongoose: Connection-level sanitizeFilter not applied
published 9d ago modified yesterday also EUVD-2026-120502 , GHSA-gg4r-jv3p-qx3c
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mongoose 6.13.12, 7.8.13, 8.24.7, 9.11.4
- github.com/Automattic/mongoose@4bb6594 commit
- github.com/Automattic/mongoose@4f4f9a7 commit
- github.com/Automattic/mongoose@83eda6a commit
- github.com/Automattic/mongoose@b8970c2 commit
- github.com/Automattic/mongoose/releases/tag/6.13.12 release
- github.com/Automattic/mongoose/releases/tag/7.8.13 release
- github.com/Automattic/mongoose/releases/tag/8.24.7 release
- github.com/Automattic/mongoose/releases/tag/9.11.4 release
Is CVE-2026-125119 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-125119 updated cvss 7.5
mongoose: Mongoose: Security feature bypass via ignored connection-level sanitizeFilter option
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| 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.4 |
6.13.12 7.8.13 8.24.7 9.11.4 |
Affected products
- Automattic mongoose
Classification
- Weakness
-
- CWE-943 Improper Neutralization of Special Elements in Data Query Logic
References
-
github.com
/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29
web
-
github.com
/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491
web
-
github.com
/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5
web
-
github.com
/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d
web
-
github.com
/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c
web, advisory
-
github.com
/Automattic/mongoose/releases/tag/6.13.12
web
-
github.com
/Automattic/mongoose/releases/tag/7.8.13
web
-
github.com
/Automattic/mongoose/releases/tag/8.24.7
web
-
github.com
/Automattic/mongoose/releases/tag/9.11.4
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-125119
advisory
-
github.com
/Automattic/mongoose
package
Sources
- CVE List CVE-2026-125119
- GitHub Advisory GHSA-gg4r-jv3p-qx3c
- Maintainer advisory GHSA-gg4r-jv3p-qx3c
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of Automattic/mongoose published their own advisory on GitHub. Reviewed sources take precedence over it.