CVE-2026-135145 - Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB
Vulnerability · Reported by NVD · · CWE-863
- Severity
- High Risk score 76/100
- CVSS
- 7.6 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.55% Higher than 40% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a incorrect authorization flaw (CWE-863). An attacker can exploit this vulnerability remotely over the network, with a low-privileged account, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.55% chance this CVE will be exploited in the next 30 days, which is low and higher than 40% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2026-135145
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-135145 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.