CVE-2026-135145 Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB
HighCVSS 7.6
EPSS 0.55%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Laravel
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| MongoDB PHP Driver | >= 4.1.0, < 5.12.2 | 5.12.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB PHP Driver | >= 4.1.0, < 5.12.2 | 5.12.2 |
References
- jira.mongodb.org
- ENISA EUVD EUVD-2026-135551 third-party-advisory