8.8High

CVE-2026-118510Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs

MongoDB Laravel MongoDB Published: (22 days ago)

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.

Weakness (CWE): CWE-843

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
MongoDB Laravel MongoDB 3.2.3 – < 5.12.0

References and patches