{"id":"CVE-2026-118510","state":"PUBLISHED","title":"Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs","description":"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.","publishedAt":"2026-10-28T16:15:08.426Z","updatedAt":"2026-10-28T16:15:08.426Z","severity":{"score":7.7,"label":"High","version":"4.0","vector":"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","source":"mongodb"},"assigner":"mongodb","products":["MongoDB Laravel MongoDB"],"affected":[{"vendor":"MongoDB","product":"Laravel MongoDB","packageName":"mongodb/laravel-mongodb","defaultStatus":"unaffected","versions":[{"version":"3.2.3","status":"affected","lessThan":"5.12.0","versionType":"semver"}]}],"references":["https://github.com/mongodb/laravel-mongodb/releases/tag/5.12.0","https://jira.mongodb.org/browse/PHPLARA-148"],"weaknesses":["CWE-843"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118510.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118510","state":"PUBLISHED","datePublished":"2026-10-28T16:15:08.426Z","dateUpdated":"2026-10-28T16:15:08.426Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-10-28T13:54:17.756Z"},"containers":{"cna":{"title":"Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"MongoDB","product":"Laravel MongoDB","packageName":"mongodb/laravel-mongodb","defaultStatus":"unaffected","versions":[{"version":"3.2.3","status":"affected","lessThan":"5.12.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/mongodb/laravel-mongodb/releases/tag/5.12.0"},{"url":"https://jira.mongodb.org/browse/PHPLARA-148"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":7.7,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","lang":"en","description":"CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-10-28T16:15:08.426Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.5"}}}}}