{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.8.14"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.24.10"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "fixed": "9.12.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "34e76947cc8a9ceb916c233aec01aea060bc3dba"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "4627d2fc572a943ee7afe26a1bcebe493dbd2508"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "c6a4c95f9b15d81a352f2934c91b64ece583c2db"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "7.8.14",
                "range": [
                  {
                    "fixed": "73e3db443cff3a18371d94a8ee667992cf9a81e2"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "8.24.10",
                "range": [
                  {
                    "fixed": "f8666d81080a6699e5274d8488c690b4c8171ed6"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "9.12.2",
                "range": [
                  {
                    "fixed": "a8204d30c4db4ba1138bc75a879c79cf5127670d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "9b1ff1fe2ae42c985b31a57a084462a07619a546"
            },
            {
              "fixed": "73e3db443cff3a18371d94a8ee667992cf9a81e2"
            },
            {
              "introduced": "582156858db3ca7fbaa8950dc997e0d9e8117b21"
            },
            {
              "fixed": "f8666d81080a6699e5274d8488c690b4c8171ed6"
            },
            {
              "introduced": "93c780b6e1c24a6b4ab42c14e64a2500da87a54b"
            },
            {
              "fixed": "a8204d30c4db4ba1138bc75a879c79cf5127670d"
            },
            {
              "fixed": "34e76947cc8a9ceb916c233aec01aea060bc3dba"
            },
            {
              "fixed": "3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835"
            },
            {
              "fixed": "4627d2fc572a943ee7afe26a1bcebe493dbd2508"
            },
            {
              "fixed": "c6a4c95f9b15d81a352f2934c91b64ece583c2db"
            }
          ],
          "repo": "https://github.com/automattic/mongoose",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-25v4-hrwm-qj9f"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-943"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142595.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "6.0.0"
              },
              {
                "fixed": "6.13.13"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
          }
        ]
      }
    ]
  },
  "details": "Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not recursively inspect undocumented operators such as $_internalSchemaXor and $_internalSchemaCond. Applications that pass attacker-controlled filter keys to queries while relying on sanitizeFilter can therefore accept nested selectors such as $ne or $regex, allowing authentication bypass, disclosure of protected values through boolean queries, or unintended updates and deletions. Applications that construct filters from individual primitive values are not affected by this bypass. This issue is fixed in versions 6.13.13, 7.8.14, 8.24.10, and 9.12.2.",
  "id": "CVE-2026-142595",
  "modified": "2026-12-02T22:45:41.156789182Z",
  "published": "2026-12-02T21:47:03.928Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea060bc3dba"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493dbd2508"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece583c2db"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/7.8.14"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/8.24.10"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Automattic/mongoose/releases/tag/9.12.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142595.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142595"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`"
}