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

Published Updated

Users with basic privileges can read and modify records a polymorphic relationship query should hide in Laravel apps using MongoDB Eloquent.

CVSS score

High

7.6/10

CVSS 4.0 · Scored by Mongodb Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Over the internet
Any signed-in user, no user action

What is CVE-2026-135145?

CVE-2026-135145 is a high-severity missing authorization vulnerability in MongoDB PHP Driver, published on 25 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-863

How severe is CVE-2026-135145?

CVE-2026-135145 scores 7.6 out of 10 under CVSS 4.0, which is high severity. It was scored by Mongodb.

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
None

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

Which versions are affected by CVE-2026-135145?

An affected version is only exploitable if your software calls whereDoesntHave. Many projects that include it are not exposed.

How do I fix CVE-2026-135145?

No fix has been published for CVE-2026-135145 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-135145 being exploited?

There is no known exploitation of CVE-2026-135145 in the wild and no public exploit code.

Sources

Is CVE-2026-135145 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free