{"api_version":"1","generated_at":"2026-11-12T23:27:42+00:00","cve":"CVE-2026-125120","urls":{"html":"https://cve.report/CVE-2026-125120","api":"https://cve.report/api/cve/CVE-2026-125120.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-125120","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-125120"},"summary":{"title":"Mongoose: sanitizeFilter not applied on countDocuments","description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-11-09 23:17:22","updated_at":"2026-11-12 19:18:09"},"problem_types":["CWE-943","CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a","name":"https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d","name":"https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.11","name":"https://github.com/Automattic/mongoose/releases/tag/6.13.11","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.12","name":"https://github.com/Automattic/mongoose/releases/tag/7.8.12","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h","name":"https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/releases/tag/9.9.2","name":"https://github.com/Automattic/mongoose/releases/tag/9.9.2","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710","name":"https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557","name":"https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.3","name":"https://github.com/Automattic/mongoose/releases/tag/8.24.3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-125120","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125120","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Automattic","product":"mongoose","version":"affected < 6.13.11","platforms":[]},{"source":"CNA","vendor":"Automattic","product":"mongoose","version":"affected >= 7.0.0, < 7.8.12","platforms":[]},{"source":"CNA","vendor":"Automattic","product":"mongoose","version":"affected >= 8.0.0, < 8.24.3","platforms":[]},{"source":"CNA","vendor":"Automattic","product":"mongoose","version":"affected >= 9.0.0, < 9.9.2","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"mongoose","vendor":"Automattic","versions":[{"status":"affected","version":"< 6.13.11"},{"status":"affected","version":">= 7.0.0, < 7.8.12"},{"status":"affected","version":">= 8.0.0, < 8.24.3"},{"status":"affected","version":">= 9.0.0, < 9.9.2"}]}],"descriptions":[{"lang":"en","value":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-943","description":"CWE-943: Improper Neutralization of Special Elements in Data Query Logic","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-09T22:36:16.207Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h","tags":["x_refsource_CONFIRM"],"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h"},{"name":"https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a"},{"name":"https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557"},{"name":"https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d"},{"name":"https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710"},{"name":"https://github.com/Automattic/mongoose/releases/tag/6.13.11","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.11"},{"name":"https://github.com/Automattic/mongoose/releases/tag/7.8.12","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.12"},{"name":"https://github.com/Automattic/mongoose/releases/tag/8.24.3","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.3"},{"name":"https://github.com/Automattic/mongoose/releases/tag/9.9.2","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/9.9.2"}],"source":{"advisory":"GHSA-pcrw-h46h-c93h","discovery":"UNKNOWN"},"title":"Mongoose: sanitizeFilter not applied on countDocuments"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-125120","datePublished":"2026-11-09T22:36:16.207Z","dateReserved":"2026-11-09T17:45:35.936Z","dateUpdated":"2026-11-09T22:36:16.207Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-09 23:17:22","lastModifiedDate":"2026-11-12 19:18:09","problem_types":["CWE-943","CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"125120","Ordinal":"1","Title":"Mongoose: sanitizeFilter not applied on countDocuments","CVE":"CVE-2026-125120","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"125120","Ordinal":"1","NoteData":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2.","Type":"Description","Title":"Mongoose: sanitizeFilter not applied on countDocuments"}]}}}