Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-135145
Published:November 25, 2026
Updated:November 29, 2026
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.
Affected Packages
https://github.com/mongodb/laravel-mongodb.git (GITHUB):
Affected version(s) >=4.1.0 <5.12.2 || >=5.0.0-rc1 <5.12.2
Fix Suggestion:
Update to version 5.12.2
jenssegers/mongodb (PHP):
Affected version(s) >=5.0.0-rc1 <5.12.2 || >=4.1.0 <5.12.2
Fix Suggestion:
Update to version 5.12.2
mongodb/laravel-mongodb (PHP):
Affected version(s) >=5.0.0-rc1 <5.12.2 || >=4.1.0 <5.12.2
Fix Suggestion:
Update to version 5.12.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization
EPSS
Base Score:
0.55