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

- Severity: High 7.7 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-10-28T16:15:08.426Z
- Modified: 2026-11-05T19:17:13.857Z
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- mongodb/laravel-mongodb: from 3.2.3 before 5.12.0

## Every score

- mongodb: CVSS:4.0 7.7 High `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`
- mongodb: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-118510](https://www.cve.org/CVERecord?id=CVE-2026-118510), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-118510](https://nvd.nist.gov/vuln/detail/CVE-2026-118510), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-118510 · Whole record: https://cve.day/CVE-2026-118510.json · Rebuilt by cve.day 2026-11-25T22:59:47.643Z
