{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.2.3"
                  },
                  {
                    "fixed": "5.12.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "original_tag": "5.12.0",
                "range": [
                  {
                    "fixed": "faea6c1c6e34098becd7dd24f19ebaabb824aca0"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "c0cae3e187999ea80f92cc5ab169de4baa784f2e"
            },
            {
              "fixed": "faea6c1c6e34098becd7dd24f19ebaabb824aca0"
            }
          ],
          "repo": "https://github.com/mongodb/laravel-mongodb",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mongodb",
    "cwe_ids": [
      "CWE-843"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118510.json"
  },
  "details": "A type-handling flaw in the relationship query building of this MongoDB integration library can cause a check for the absence of a related record to be compiled with an identifier of the wrong data type. In an application that relies on such a check to decide which documents a request may see or act on, a user with basic privileges may be served, may change, or may remove documents that the check was intended to withhold. The failure is silent and produces no error.",
  "id": "CVE-2026-118510",
  "modified": "2026-11-07T02:30:19.126203349Z",
  "published": "2026-10-28T16:15:08.426Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/mongodb/laravel-mongodb/releases/tag/5.12.0"
    },
    {
      "type": "WEB",
      "url": "https://jira.mongodb.org/browse/PHPLARA-148"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118510.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118510"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs"
}