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

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

## Description

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

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.553%, percentile 47.67%, 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 php driver: ≥ 4.1.0, \< 5.12.2

## References

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

---

Data as of 2026-12-05T04:05:23.920Z. 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
