← Back to CVE Explorer

CVE-2026-125120

Full vulnerability record from the local CVENow database.

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.

Severity
CRITICAL
CVSS score
9.8 (v3.1)
Vulnerability status
Received
Source identifier
Published
2026-11-09 23:17:22.587000
Last modified
2026-11-09 23:17:22.587000
View original CVE JSON
{
  "id": "CVE-2026-125120",
  "sourceIdentifier": "[email protected]",
  "published": "2026-11-09T23:17:22.587",
  "lastModified": "2026-11-09T23:17:22.587",
  "vulnStatus": "Received",
  "cveTags": [],
  "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."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Automattic",
          "product": "mongoose",
          "versions": [
            {
              "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",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "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
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Primary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-943"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/releases/tag/6.13.11",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/releases/tag/7.8.12",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/releases/tag/8.24.3",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/releases/tag/9.9.2",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
      "source": "[email protected]"
    }
  ]
}