{"id":"CVE-2026-118510","revision":"087ebdd2d5304c6da5ce712af2c2c986","records":[{"revision":"087ebdd2d5304c6da5ce712af2c2c986","observedAt":"2026-10-28T17:46:48.824+00:00","statement":{"source":"cve-program","id":"CVE-2026-118510","aliases":[],"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.","state":0,"publishedAt":"2026-10-28T16:15:08.426+00:00","modifiedAt":"2026-10-28T16:15:08.426+00:00","affected":[{"ecosystem":"Vendor product","name":"mongodb/laravel-mongodb","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"MongoDB\",\n                    \"product\": \"Laravel MongoDB\",\n                    \"packageName\": \"mongodb/laravel-mongodb\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"3.2.3\",\n                            \"lessThan\": \"5.12.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 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","score":7.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/mongodb/laravel-mongodb/releases/tag/5.12.0","https://jira.mongodb.org/browse/PHPLARA-148"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-118510","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-118510","identifiers":["CVE-2026-118510"]},"retained":false,"historicalAffected":[]}],"coverage":[]}