# CVE-2026-135145: Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB

- Severity: High 7.6 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-11-25T16:29:34.767Z
- Modified: 2026-11-25T20:18:10.493Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## Description

A polymorphic relationship query helper in the MongoDB Eloquent integration for Laravel resolves a record's type identifier inconsistently between the code that stores a relationship link and the code that searches for one. An application that relies on a relationship-absence query to restrict which records a request may see or change can therefore have that restriction silently fail, allowing a user with basic application privileges to read and to modify or remove records the restriction was meant to cover.

(As written by CVE List.)

## Affected

- MongoDB PHP Driver: from 4.1.0 before 5.12.2

## Every score

- mongodb: CVSS:4.0 7.6 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://jira.mongodb.org/browse/PHPLARA-320>

## Sources

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

---

Page: https://cve.day/CVE-2026-135145 · Whole record: https://cve.day/CVE-2026-135145.json · Rebuilt by cve.day 2026-11-25T23:18:08.399Z
