# CVE-2026-125119: Mongoose: Connection-level sanitizeFilter not applied

Status: published. Published: 2026-11-09. Updated: 2026-11-09.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Automattic / mongoose: >= 6.0.0, < 6.13.12 (affected); >= 7.0.0, < 7.8.13 (affected); >= 8.0.0, < 8.24.7 (affected); >= 9.0.0, < 9.11.4 (affected). Source: CNA: GitHub_M

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N; source: CNA: GitHub_M

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-943

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/releases/tag/6.13.12 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/releases/tag/7.8.13 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/releases/tag/8.24.7 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/releases/tag/9.11.4 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d (security-advisories@github.com)

- https://github.com/Automattic/mongoose/releases/tag/6.13.12 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/releases/tag/7.8.13 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/releases/tag/8.24.7 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/releases/tag/9.11.4 (security-advisories@github.com)

- https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c (security-advisories@github.com)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-125119; retrieved 2026-11-09; source updated 2026-11-09

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-125119; retrieved 2026-11-10; source updated 2026-11-09

Revision: da4b7730f328d3964aee7fcea1d43c6c89b51dda67349e8d95a9efe46d45d85f

Canonical: https://y2.dev/cve/CVE-2026-125119

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.