{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.0.0"
                  },
                  {
                    "fixed": "6.13.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.8.13"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.24.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "fixed": "9.11.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "4bb659478be2f30655a7bdd78bc251bdf111cd29"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "4f4f9a79f860786a54133bee2c9af967ec691491"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "83eda6af1489e9ef60bb8eee8cf9ee005771b9d5"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "b8970c25998c23fbccd17f76c0398b902ff4911d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "6.13.12",
                "range": [
                  {
                    "fixed": "cfc97ffcb3cf4acb45f3c19692fd727d7d142ed5"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "7.8.13",
                "range": [
                  {
                    "fixed": "c9f8fe4b878a03dd66f773b89f795b93c7f0e490"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "8.24.7",
                "range": [
                  {
                    "fixed": "d0e609c73787c996ec0fa40016ebd5ae0f12561f"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "9.11.4",
                "range": [
                  {
                    "fixed": "8d8b50f8b7e10bd28771d6874a10f971fe5ad5ac"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "c4b2a7ca8ab8434037d02eca6f8d6430b4f7752f"
            },
            {
              "fixed": "cfc97ffcb3cf4acb45f3c19692fd727d7d142ed5"
            },
            {
              "introduced": "9b1ff1fe2ae42c985b31a57a084462a07619a546"
            },
            {
              "fixed": "c9f8fe4b878a03dd66f773b89f795b93c7f0e490"
            },
            {
              "introduced": "582156858db3ca7fbaa8950dc997e0d9e8117b21"
            },
            {
              "fixed": "d0e609c73787c996ec0fa40016ebd5ae0f12561f"
            },
            {
              "introduced": "93c780b6e1c24a6b4ab42c14e64a2500da87a54b"
            },
            {
              "fixed": "8d8b50f8b7e10bd28771d6874a10f971fe5ad5ac"
            },
            {
              "fixed": "4bb659478be2f30655a7bdd78bc251bdf111cd29"
            },
            {
              "fixed": "4f4f9a79f860786a54133bee2c9af967ec691491"
            },
            {
              "fixed": "83eda6af1489e9ef60bb8eee8cf9ee005771b9d5"
            },
            {
              "fixed": "b8970c25998c23fbccd17f76c0398b902ff4911d"
            }
          ],
          "repo": "https://github.com/automattic/mongoose",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-gg4r-jv3p-qx3c"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-943"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125119.json"
  },
  "details": "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.",
  "id": "CVE-2026-125119",
  "modified": "2026-11-14T02:30:38.826082369Z",
  "published": "2026-11-09T22:32:49.132Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/6.13.12"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/7.8.13"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/8.24.7"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/9.11.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125119.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125119"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Mongoose: Connection-level sanitizeFilter not applied"
}