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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-28 · Modified: 2026-11-05
- Record: https://cvemate.com/vulnerability/CVE-2026-118510 · JSON: https://cvemate.com/vulnerability/CVE-2026-118510/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.374%, percentile 33.396%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb laravel mongodb: ≥ 3.2.3, \< 5.12.0

## References

- <https://github.com/mongodb/laravel-mongodb/releases/tag/5.12.0>
- <https://jira.mongodb.org/browse/PHPLARA-148>

---

Data as of 2026-12-05T08:33:24.364Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
