{"schemaVersion":4,"id":"CVE-2026-125119","aliases":["GHSA-gg4r-jv3p-qx3c","BIT-mongoose-2026-125119"],"status":"published","duplicateOf":null,"title":"Mongoose: Connection-level sanitizeFilter not applied","description":"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.","dates":{"published":"2026-11-09T22:32:49.132Z","modified":"2026-11-12T18:04:30.712Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.00709,"percentile":0.54849,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-10T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00709,"percentile":0.54849}],"last30":[{"date":"2026-11-10T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00541,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00665,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00709,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00709,"percentile":0.54849}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic","description":"The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/943.html"}],"affected":[{"vendor":"automattic","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0.0, < 6.13.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"6.0.0","startInclusive":true,"end":"6.13.12","endInclusive":false}},{"text":"≥ 7.0.0, < 7.8.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.8.13","endInclusive":false}},{"text":"≥ 8.0.0, < 8.24.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.0.0","startInclusive":true,"end":"8.24.7","endInclusive":false}},{"text":"≥ 9.0.0, < 9.11.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.0.0","startInclusive":true,"end":"9.11.4","endInclusive":false}}],"versionsText":"≥ 6.0.0, < 6.13.12 | ≥ 7.0.0, < 7.8.13 | ≥ 8.0.0, < 8.24.7 | ≥ 9.0.0, < 9.11.4","eol":null,"hubHref":"/vendor/automattic/mongoose"},{"vendor":"Npm","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/mongoose","purlType":"npm","versions":[{"text":"≥ 6.0.0, < 6.13.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"6.0.0","startInclusive":true,"end":"6.13.12","endInclusive":false}},{"text":"≥ 7.0.0, < 7.8.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.8.13","endInclusive":false}},{"text":"≥ 8.0.0, < 8.24.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.0.0","startInclusive":true,"end":"8.24.7","endInclusive":false}},{"text":"≥ 9.0.0, < 9.11.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.0.0","startInclusive":true,"end":"9.11.4","endInclusive":false}}],"versionsText":"≥ 6.0.0, < 6.13.12 | ≥ 7.0.0, < 7.8.13 | ≥ 8.0.0, < 8.24.7 | ≥ 9.0.0, < 9.11.4","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c","label":"github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29","label":"github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491","label":"github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5","label":"github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d","label":"github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.12","label":"github.com/Automattic/mongoose/releases/tag/6.13.12","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.13","label":"github.com/Automattic/mongoose/releases/tag/7.8.13","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.7","label":"github.com/Automattic/mongoose/releases/tag/8.24.7","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/9.11.4","label":"github.com/Automattic/mongoose/releases/tag/9.11.4","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125119","label":"nvd.nist.gov/vuln/detail/CVE-2026-125119","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/Automattic/mongoose","label":"github.com/Automattic/mongoose","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-09T22:32:49.132Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-12T18:04:30.712Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 6.13.12, 7.8.13, 8.24.7, 9.11.4 (CNA); fix release not confirmed","rank":[0,0,0,0,1,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00709,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-12T18:04:30.712Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-12T18:04:30.712Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-11-12T18:04:30.712Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-12T16:37:36.614Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00709,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:11:16.578Z","stale":false,"partial":false}}