{
  "id": "CVE-2026-142596",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-142596",
  "published_at": "2026-12-02T21:50:31.552Z",
  "title": "Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`",
  "vendor": "Automattic",
  "product": "mongoose",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-12-04T07:54:14Z",
    "first_seen_at": "2026-12-04T08:05:48.364Z",
    "days_after_publication": 1.4,
    "repo": "googlesky/CVE-2026-142596",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, object or array aggregation expressions, nested and parent projections, positional projections, $meta, discriminator-specific exclusions, an own __proto__ key, and projection-cast error paths. Applications that pass attacker-controlled data to select(), find(filter, projection), or the projection option while relying on sanitizeProjection can return fields marked select: false, including password hashes, reset tokens, API keys, and nested secrets. Nested exclusion objects, $elemMatch combined with an exclusion or a cast error, and discriminator filters can also cause ordinary queries that do not enable sanitizeProjection to omit the select: false exclusions that Mongoose normally adds. This issue is fixed in versions 8.24.10 and 9.12.2.",
  "cwe": "CWE-200",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [
    {
      "repo": "googlesky/CVE-2026-142596",
      "url": "https://github.com/googlesky/CVE-2026-142596",
      "created_at": "2026-12-04T07:54:14Z",
      "first_seen_at": "2026-12-04T08:05:48.364Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-04-08T15:16:09Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Automattic",
        "product": "mongoose",
        "ranges": [
          "\u003e= 8.5.0, \u003c 8.24.10",
          "\u003e= 9.0.0, \u003c 9.12.2"
        ],
        "fixed_in": [
          "8.24.10",
          "9.12.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mongoose to 8.24.10 or 9.12.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmq"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/Automattic/mongoose/releases/tag/8.24.10"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/Automattic/mongoose/releases/tag/9.12.2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
