{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection · updates",
  "home_page_url": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120",
  "feed_url": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120/feed.json",
  "description": "Mongoose's sanitizeFilter option was not applied to countDocuments(), so user input passed to it could inject MongoDB query operators (CVE-2026-125120). Fixes shipped on Aug 10 2026 in 6.13.11, 7.8.12, 8.24.3 and 9.9.2; the advisory was published on Nov 2 and reviewed by GitHub on Nov 10. Until you update, a global pre('countDocuments') plugin that runs mongoose.sanitizeFilter on the query filter works around it.",
  "language": "en",
  "_pwn": {
    "slug": "mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120",
    "severity": "critical",
    "status": "live",
    "patchStatus": "patched",
    "rss": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120/feed.xml",
    "llms": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120/llms.txt",
    "json": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120.json"
  },
  "items": [
    {
      "id": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-11-10-499e9902",
      "url": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-11-10-499e9902",
      "title": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: GitHub reviews the advisory.",
      "content_text": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: GitHub reviews the advisory.\n\nSource: https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
      "date_published": "2026-11-10T00:00:00.000Z",
      "external_url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
      "tags": [
        "critical"
      ]
    },
    {
      "id": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-11-02-d86b4ac8",
      "url": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-11-02-d86b4ac8",
      "title": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: The advisory GHSA-pcrw-h46h-c93h is published.",
      "content_text": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: The advisory GHSA-pcrw-h46h-c93h is published.\n\nSource: https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
      "date_published": "2026-11-02T00:00:00.000Z",
      "external_url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
      "tags": [
        "critical"
      ]
    },
    {
      "id": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-08-10-ee3be8b3",
      "url": "https://pwn.watch/i/mongoose-countdocuments-sanitizefilter-nosql-injection-cve-2026-125120#2026-08-10-ee3be8b3",
      "title": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: Mongoose 6.13.11, 7.8.12, 8.24.3 and 9.9.2 ship the fix.",
      "content_text": "Mongoose did not apply sanitizeFilter to countDocuments, allowing NoSQL query injection: Mongoose 6.13.11, 7.8.12, 8.24.3 and 9.9.2 ship the fix.\n\nSource: https://github.com/Automattic/mongoose/releases/tag/9.9.2",
      "date_published": "2026-08-10T00:00:00.000Z",
      "external_url": "https://github.com/Automattic/mongoose/releases/tag/9.9.2",
      "tags": [
        "critical"
      ]
    }
  ]
}
