{"id":"CVE-2026-118510","summary":"Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs","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.","modified":"2026-11-07T02:30:19.126203349Z","published":"2026-10-28T16:15:08.426Z","database_specific":{"cwe_ids":["CWE-843"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118510.json","cna_assigner":"mongodb"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/laravel-mongodb","events":[{"introduced":"c0cae3e187999ea80f92cc5ab169de4baa784f2e"},{"fixed":"faea6c1c6e34098becd7dd24f19ebaabb824aca0"}],"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"}]}}],"versions":["5.10.0","5.11.0","5.9.1","5.9.0","5.8.0","5.7.0","5.6.0","5.5.0","5.4.0","5.3.0","5.2.0","5.1.0","5.0.0-rc1","4.7.0","4.6.0","4.5.0","4.4.0","4.3.0","4.2.0","4.1.1","4.1.0","4.0.0","4.0.0-rc1","v4.0.0-ALPHA2","v4.0.0-ALPHA1","v3.9.4","3.9.3","v3.9.2","v3.9.1","v3.9.0","3.8.4","v3.8.3","v3.8.2","v3.8.1","v3.8.0","v3.3.1","v3.7.0","v3.6.5","3.6.5","v3.6.4","v3.6.3","v3.6.2","v3.6.1","v3.6.0","v3.5.3","v3.5.2","v3.5.1","v3.5.0","v3.4.6","v3.4.5","v3.4.4","v3.4.3","v3.4.2","v3.4.1","v3.4.0","v3.2.3","v3.3.0","v3.3.0-alpha"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118510.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}